public uint Add(IntPtr scenePtr, MeshFlags flags) { var meshID = RTC.NewTriangleMesh(scenePtr, flags, triangleCount, vertexCount, 1); RTC.CheckLastError(); return(meshID); }
internal TriangleMesh(Scene parent, TriangleMeshDescription desc) { this.parent = parent; this.description = desc; this.id = RTC.NewTriangleMesh(Parent.NativePtr, Description.Flags, Description.NumTriangles, Description.NumVertices, Description.LinearMotion ? 2 : 1); }