예제 #1
0
        /// <summary>
        /// Gets a list of the triangles in the subdivision,
        /// specified as an array of the triangle <see cref="Vertex"/>es.
        /// </summary>
        /// <param name="includeFrame">true if the frame triangles should be included</param>
        /// <returns>a List of Vertex[3] arrays</returns>
        public IList <Vertex[]> GetTriangleVertices(bool includeFrame)
        {
            var visitor = new TriangleVertexListVisitor();

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