Exemplo n.º 1
0
        /// <summary>
        /// Gets a list of the triangles
        /// in the subdivision, specified as
        /// an array of the primary quadedges around the triangle.
        /// </summary>
        /// <param name="includeFrame">true if the frame triangles should be included</param>
        /// <returns>a List of QuadEdge[3] arrays</returns>
        public IList <QuadEdge[]> GetTriangleEdges(bool includeFrame)
        {
            var visitor = new TriangleEdgesListVisitor();

            VisitTriangles(visitor, includeFrame);
            return(visitor.GetTriangleEdges());
        }
 /// <summary>
 /// Gets a list of the triangles
 /// in the subdivision, specified as
 /// an array of the primary quadedges around the triangle.
 /// </summary>
 /// <param name="includeFrame">true if the frame triangles should be included</param>
 /// <returns>a List of QuadEdge[3] arrays</returns>
 public IList<QuadEdge[]> GetTriangleEdges(bool includeFrame)
 {
     var visitor = new TriangleEdgesListVisitor();
     VisitTriangles(visitor, includeFrame);
     return visitor.GetTriangleEdges();
 }