Skip to content

Getting Error in Unity #175

Open
Open

Description

@AcKeskin

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
`

Activity

  1. firdiar commented on May 8, 2022

    @firdiar

    Have you add the namespace in the script

    using g3;
    
  2. runette commented on Dec 21, 2022

    @runette
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions