예제 #1
0
        public virtual SimpleMesh MakeSimpleMesh()
        {
            SimpleMesh m = new SimpleMesh();

            MakeMesh(m);
            return(m);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public virtual void MakeMesh(SimpleMesh m)
 {
     m.AppendVertices(vertices, (WantNormals) ? normals : null, null, (WantUVs) ? uv : null);
     m.AppendTriangles(triangles);
 }