Пример #1
0
 /// <summary>
 /// Constructs a new Half-Edge Mesh from an existing one
 /// </summary>
 /// <param name="halfEdgeMesh">Existing Half-Edge Mesh</param>
 public HE_Mesh(HE_Mesh halfEdgeMesh)
 {
     Vertices   = new List <HE_Vertex>(halfEdgeMesh.Vertices);
     Edges      = new List <HE_Edge>(halfEdgeMesh.Edges);
     Faces      = new List <HE_Face>(halfEdgeMesh.Faces);
     Corners    = new List <HE_Corner>(halfEdgeMesh.Corners);
     HalfEdges  = new List <HE_HalfEdge>(halfEdgeMesh.HalfEdges);
     Boundaries = new List <HE_Face>(halfEdgeMesh.Boundaries);
     Generators = new List <HE_Generators>(halfEdgeMesh.Generators);
 }
Пример #2
0
        public HE_MeshTopology(HE_Mesh _mesh)
        {
            mesh = _mesh;

            VertexVertex = new Dictionary <int, List <int> >();
            VertexFaces  = new Dictionary <int, List <int> >();
            VertexEdges  = new Dictionary <int, List <int> >();
            FaceVertex   = new Dictionary <int, List <int> >();
            FaceFace     = new Dictionary <int, List <int> >();
            FaceEdge     = new Dictionary <int, List <int> >();
            EdgeVertex   = new Dictionary <int, List <int> >();
            EdgeFace     = new Dictionary <int, List <int> >();
            EdgeEdge     = new Dictionary <int, List <int> >();
        }