コード例 #1
0
        public MeshGeometry3D MakeGeometry(MFnMesh fnMesh)
        {
            var r    = new MeshGeometry3D();
            var mesh = new TriangleMeshAdapater(fnMesh);

            r.Positions       = mesh.Points;
            r.TriangleIndices = mesh.Indices;
            r.Normals         = mesh.Normals;
            return(r);
        }
コード例 #2
0
 public MeshGeometry3D MakeGeometry(MFnMesh fnMesh)
 {
     var r =new MeshGeometry3D () ;
     var mesh =new TriangleMeshAdapater (fnMesh) ;
     r.Positions =mesh.Points ;
     r.TriangleIndices =mesh.Indices ;
     r.Normals =mesh.Normals ;
     return (r) ;
 }