public virtual SimpleMesh MakeSimpleMesh() { SimpleMesh m = new SimpleMesh(); MakeMesh(m); return(m); }
public int AppendNewMesh(DMesh3 existingMesh) { int index = Meshes.Count; SimpleMesh m = new SimpleMesh(existingMesh); Meshes.Add(m); MaterialAssignment.Add(-1); // no material is known nActiveMesh = index; return(index); }
public int AppendNewMesh(bool bHaveVtxNormals, bool bHaveVtxColors, bool bHaveVtxUVs, bool bHaveFaceGroups) { int index = Meshes.Count; SimpleMesh m = new SimpleMesh(); m.Initialize(bHaveVtxNormals, bHaveVtxColors, bHaveVtxUVs, bHaveFaceGroups); Meshes.Add(m); MaterialAssignment.Add(-1); // no material is known nActiveMesh = index; return(index); }
public virtual void MakeMesh(SimpleMesh m) { m.AppendVertices(vertices, (WantNormals) ? normals : null, null, (WantUVs) ? uv : null); m.AppendTriangles(triangles); }