public class MeshBuilder<X extends Point_>
extends java.lang.Object
Constructor and Description |
---|
MeshBuilder() |
Modifier and Type | Method and Description |
---|---|
private void |
addBoundaryEdges(Polyhedron_3<X> mesh)
Add and set boundary half-edges to the representation
Remark: it allows to deal with meshes having boundaries
|
(package private) Polyhedron_3<X> |
createMesh(X[] points,
int[] faceDegrees,
int[][] faces)
Efficient construction of a Polyhedron (Half-edge DS) for a triangle mesh (from a share vertex representation)
Warning: old version, it works only for triangle meshes
|
(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)
|
private Halfedge<X> |
getNextBoundaryHalfedge(Halfedge<X> e)
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 java.lang.String |
printEdge(Halfedge<X> e)
Print the edge (the index of its extremities)
Useful for debugging
|
Polyhedron_3<X> createMesh(X[] points, int[] faceDegrees, int[][] faces)
Polyhedron_3<X> createMeshOld(X[] points, int[] faceDegrees, int[][] faces)
private void addBoundaryEdges(Polyhedron_3<X> mesh)
private Halfedge<X> getNextBoundaryHalfedge(Halfedge<X> e)
private java.lang.String printEdge(Halfedge<X> e)