/// <summary> /// Gets the coordinates for each triangle in the subdivision as an array. /// </summary> /// <param name="includeFrame">true if the frame triangles should be included</param> /// <returns>a list of Coordinate[4] representing each triangle</returns> public IList <Coordinate[]> GetTriangleCoordinates(bool includeFrame) { var visitor = new TriangleCoordinatesVisitor(); VisitTriangles(visitor, includeFrame); return(visitor.GetTriangles()); }
/// <summary> /// Gets the coordinates for each triangle in the subdivision as an array. /// </summary> /// <param name="includeFrame">true if the frame triangles should be included</param> /// <returns>a list of Coordinate[4] representing each triangle</returns> public IList<Coordinate[]> GetTriangleCoordinates(bool includeFrame) { var visitor = new TriangleCoordinatesVisitor(); VisitTriangles(visitor, includeFrame); return visitor.GetTriangles(); }