Git Product home page Git Product logo

xatlaslib's People

Contributors

guycalledfrank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xatlaslib's Issues

Build Faild On iOS

My unity File Struct:
\Plugins\iOS\xatlas.cpp
\Plugins\iOS\xatlas.h
\Plugins\iOS\xatlas_c.h

edit xatlas.cs:
[DllImport ("xatlasLib", CallingConvention=CallingConvention.Cdecl)]
to
[DllImport ("__Internal", CallingConvention=CallingConvention.Cdecl)]

than compile unity project in xcode,print 12 errors blow:
+ [arm64] Linking UnityFramework... ld: warning: arm64 function not 4-byte aligned: _unwind_tester from Libraries\libiPhone-lib.a(unwind_test_arm64.o) Undefined symbols for architecture arm64: "_xatlasCreateAtlas", referenced from: _xatlas_xatlasCreateAtlas_m9F6FC3423AC0B1507184F8C09C95F46FB4BBF88F in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasCreateAtlas_m9F6FC3423AC0B1507184F8C09C95F46FB4BBF88F) "_xatlasGetAtlasIndex", referenced from: _xatlas_xatlasGetAtlasIndex_m0CCAE558A035BA6441F9D7D2ED707375A098FAFF in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasGetAtlasIndex_m0CCAE558A035BA6441F9D7D2ED707375A098FAFF) "_xatlasAddUVMesh", referenced from: _xatlas_xatlasAddUVMesh_m1F7FCBBD0147EF2F1DF7DAE8DBE5B5EFA9DF40BD in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasAddUVMesh_m1F7FCBBD0147EF2F1DF7DAE8DBE5B5EFA9DF40BD) "_xatlasGetAtlasCount", referenced from: _xatlas_xatlasGetAtlasCount_m9A86D46FED32309AAADA55661D46680EA25960A3 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasGetAtlasCount_m9A86D46FED32309AAADA55661D46680EA25960A3) "_xatlasAddMesh", referenced from: _xatlas_xatlasAddMesh_mF5F0320F2B1860E6C215CDBFE6A2CE115FBE3B3E in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasAddMesh_mF5F0320F2B1860E6C215CDBFE6A2CE115FBE3B3E) "_xatlasParametrize", referenced from: _xatlas_xatlasParametrize_m20F95ED4808596651DE0B1F0BF2A8FD83F51ADA7 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasParametrize_m20F95ED4808596651DE0B1F0BF2A8FD83F51ADA7) "_xatlasGetVertexCount", referenced from: _xatlas_xatlasGetVertexCount_m7DFA5121E9DD4387EDCAF2B7E220E2087AFB00D7 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasGetVertexCount_m7DFA5121E9DD4387EDCAF2B7E220E2087AFB00D7) "_xatlasClear", referenced from: _xatlas_xatlasClear_m8290FB30AD17F5CE7D5A78FA5421835177887D32 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasClear_m8290FB30AD17F5CE7D5A78FA5421835177887D32) "_xatlasPack", referenced from: _xatlas_xatlasPack_m05EFE7D4FC4FDFF567FF6A5699FF03915AD080C5 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasPack_m05EFE7D4FC4FDFF567FF6A5699FF03915AD080C5) "_xatlasNormalize", referenced from: _xatlas_xatlasNormalize_mB03652469DB319858DED018EAD3B1A0D0E8FD947 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasNormalize_mB03652469DB319858DED018EAD3B1A0D0E8FD947) "_xatlasGetIndexCount", referenced from: _xatlas_xatlasGetIndexCount_m4D35E2A4BCEB2CC07F6055B21F9006AA9662E833 in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasGetIndexCount_m4D35E2A4BCEB2CC07F6055B21F9006AA9662E833) "_xatlasGetData", referenced from: _xatlas_xatlasGetData_m13F5E6596D6D1A4D7774A384FFF435C0D4F6518E in Assembly-CSharp-firstpass.cpp.obj _xatlas_Unwrap_m802775D37FBE07E5D156FF53BF6A3DD5D49085E7 in Assembly-CSharp-firstpass.cpp.obj (maybe you meant: _xatlas_xatlasGetData_m13F5E6596D6D1A4D7774A384FFF435C0D4F6518E) ld: 12 symbol(s) not found for architecture arm64

try compile xatlas.cpp with two .h files to ios static library xatlasLib.a ,and unity call .a file.compile unity project show same 12 errors too.

can you help me slove this problem? thanks very much.

Random crash

Random crash on some meshs.
In some cases,crush on program generated mesh.(generated by arkit).
In this exampleMesh, xatlas crash on random loop.
Is this problem cause by single chart? or angything?
ExampleMesh.zip

public class TestAtlas : MonoBehaviour
{
    public Mesh targetMesh;
    Mesh meshCopy;
    uint count;

    void Start()
    {
        meshCopy = Instantiate(targetMesh);
    }

    void Update()
    {
        if (!xatlas.Unwrap(targetMesh, 0))
            Debug.LogError("error");
        count++;

        Debug.Log(count + "success");
    }
}

Support 32 bit indices

This library is awesome!
but when I load 16 bit model, I got this error:
Unwrap failed: original mesh (Natural ar0(Clone)) has 16 bit indices, but unwrapped requires 32 bit.
Thanks for you sharing!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.