Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error in Unity #175

Open
AcKeskin opened this issue Mar 16, 2022 · 2 comments
Open

Getting Error in Unity #175

AcKeskin opened this issue Mar 16, 2022 · 2 comments

Comments

@AcKeskin
Copy link

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.IEnumerable1[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.IEnumerable1[T] Triangles, System.Collections.Generic.IEnumerable1[T] Normals, System.Collections.Generic.IEnumerable1[T] TriGroups) (at Assets/Scripts/geometry3sharp/mesh/DMesh3Builder.cs:170)
Ekran görüntüsü 2022-03-16 170025
`

@firdiar
Copy link

firdiar commented May 8, 2022

Have you add the namespace in the script

using g3;

@runette
Copy link

runette commented Dec 21, 2022

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) :

https://openupm.com/packages/com.virgis.geometry3sharp/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants