public class PuCleanMesh
extends java.lang.Object
Constructor and Description 

PuCleanMesh() 
Modifier and Type  Method and Description 

static int 
getNumDegenerateElements(PgElementSet geom)
Count degenerated elements. degenerated are elements, which do not have
pairwise distinct vertices or element with less than three vertices.

static int 
identifyVertices(PgGeometry geom)
Identify vertices which are identical.

static int 
identifyVertices(PgPointSet geom,
double eps)
Identify vertices which are within an epsilon box of each other.

static int 
identifyVertices(PgPointSet geom,
double eps,
boolean bMarked)
Identify vertices which are within an epsilon box of each other.

static void 
removeDegenerateElements(PgElementSet geom)
Adapt triangulation to the following conventions:
 the vertices of an element must be pairwise different

public static int identifyVertices(PgGeometry geom)
Vertex normals are recomputed if previously available and a positive number of vertices were removed.
Method is applicable to PgPointSet and its subclasses.
geom
 Geometry whose vertices shall be identifiedidentifyVertices(PgPointSet, double)
public static int identifyVertices(PgPointSet geom, double eps)
geom
 Geometry whose vertices shall be identifiedeps
 tolerance of coordinate components, not distanceidentifyVertices(PgGeometry)
,
identifyVertices(PgPointSet, double, boolean)
public static int identifyVertices(PgPointSet geom, double eps, boolean bMarked)
If flag bMarked is true then closeby vertices are identified only if both of the vertices are marked. This allows to perform identification only on a selected set of vertices.
geom
 Geometry whose vertices shall be identifiedeps
 tolerance of coordinate components, not distancebMarked
 flag if identification is only performed on selected set of verticesidentifyVertices(PgPointSet, double)
public static int getNumDegenerateElements(PgElementSet geom)
public static void removeDegenerateElements(PgElementSet geom)
"