Class MeshBuilder<X extends Point_>
java.lang.Object
Jcg.mesh.MeshBuilder<X>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddBoundaryEdges(Polyhedron_3<X> mesh) Add and set boundary half-edges to the representation Remark: it allows to deal with meshes having boundariescreateMesh(X[] points, int[] faceDegrees, int[][] faces) Efficient construction of a Polyhedron (Half-edge DS) for a surface mesh (from a share vertex representation)
Remark: it works for arbitrary polygonal meshes,possibly having boundaries(package private) Polyhedron_3<X> createMeshOld(X[] points, int[] faceDegrees, int[][] faces) Efficient construction of a polyhedral mesh (Half-edge DS) (from a share vertex representation)Given a boundary half-edge e, returns the next boundary half-edge around the same face Warning: the mesh is supposed to be manifold (boundary cycles are disjoint)static Point_2[]Point3DToPoint2D(Point_3[] points) Convert an array of 3D points to an array of 2D points (by orthogonal projection on the z=0 hyperplane)private StringPrint the edge (the index of its extremities) Useful for debugging
-
Constructor Details
-
MeshBuilder
public MeshBuilder()
-
-
Method Details
-
createMesh
Efficient construction of a Polyhedron (Half-edge DS) for a surface mesh (from a share vertex representation)
Remark: it works for arbitrary polygonal meshes,possibly having boundaries -
createMeshOld
Efficient construction of a polyhedral mesh (Half-edge DS) (from a share vertex representation) -
addBoundaryEdges
Add and set boundary half-edges to the representation Remark: it allows to deal with meshes having boundaries -
getNextBoundaryHalfedge
-
printEdge
-
Point3DToPoint2D
-