Esempio n. 1
0
 public MeshData(DMesh3 _mesh) : this()
 {
     _mesh     = new DMesh3(_mesh, true);
     vertices  = _mesh.VertexIndices().Select(vID => { var vertex = _mesh.GetVertexf(vID); return(new Vector3(vertex.x, vertex.y, vertex.z)); }).ToArray();
     triangles = _mesh.TriangleIndices().SelectMany(tID => _mesh.GetTriangle(tID).array).ToArray();
 }