예제 #1
0
        public uint Add(IntPtr scenePtr, MeshFlags flags)
        {
            var meshID = RTC.NewTriangleMesh(scenePtr, flags, triangleCount, vertexCount, 1);

            RTC.CheckLastError();
            return(meshID);
        }
예제 #2
0
 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);
 }