Open AcKeskin opened 2 years ago
Have you add the namespace in the script
using g3;
How are you installing it?
You have to install it as source and not as the .dll from Nuget - to allow the compile symbols to work.
There is a UPM package available that correctly installs in Unity (but you still the Compile Symbol) :
I get the following error even though I have added "G3_USING_UNITY" to the Scripting Define Symbols
NotSupportedException: ToVector3d: unknown type UnityEngine.Vector3 g3.BufferUtil.ToVector3d[T] (System.Collections.Generic.IEnumerable
1[T] values) (at Assets/Scripts/geometry3sharp/core/BufferUtil.cs:210) g3.DMesh3Builder.Build[VType,TType,NType] (System.Collections.Generic.IEnumerable1[T] Vertices, System.Collections.Generic.IEnumerable
1[T] Triangles, System.Collections.Generic.IEnumerable1[T] Normals, System.Collections.Generic.IEnumerable
1[T] TriGroups) (at Assets/Scripts/geometry3sharp/mesh/DMesh3Builder.cs:170) `