|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.project.PjWorkshop
jvx.geom.PwCleanMesh
Utility programs for cleaning and correcting a polyhedral mesh. Contains static functions to operate on a PgElementSet.
Identification of vertices incorporated into loader manager jv.loader.PgLoader. Therefore functionality to identify vertices moved from jvx.geom.PwCleanMesh to jv.geom.PuCleanMesh.
| Field Summary |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PwCleanMesh()
Constructor. |
|
| Method Summary | |
void |
close()
Close workshop and remove itself as listener from various classes. |
static void |
closeHoles(PgElementSet geom)
Close all holes in a geometry by the triangles, that are generated by the triangulation of boundary polygons. |
static void |
collapseEdges(PgElementSet geom,
double eps)
Collapse all edges which are shorter than PuMath.EPS. |
static int |
computeConnectivityComponents(PgElementSet geom,
PiVector cc)
Compute the connectivity components of a surface. |
static void |
cutAlongPolygonSet(PgElementSet geom,
PgPolygonSet polygonSet)
Cut a surface along polygons consisting of element edges, duplicate all vertices along this polygons, and set the polygons as additional boundary polygons. |
static int |
getNumComponents(PgElementSet geom)
Get number of connectivity components. |
static PgPolygonSet |
getParameterLines(PgElementSet geom)
Deprecated. method is moved to PwParameterLines. |
static boolean |
hasPlanarElements(PgElementSet geom,
double eps)
Test if faces of geometry are planar. |
static void |
identifyEqualElements(PgElementSet geom)
Identify and remove (combinatorially) equal elements. |
static int |
identifyFlatEdges(PgElementSet geom,
double eps)
Identify pairs of adjacent elements whose dihedral angle is less than a given threshold. |
static int |
identifyFlatRegions(PgElementSet geom,
double eps)
Identify flat vertex stars to a single elements if the discrete Gauss curvature is less or equal than a given threshold. |
static int |
identifyVertices(PgPointSet geom,
double eps)
Deprecated. starting with JavaView 2.99.018 this functionality is provided by jv.geom.PuCleanMesh#identifiyVertices(PgPointSet, double). |
static boolean |
isDegenerated(PgElementSet geom)
Checks whether edges of elements have length smaller than PuMath.EPS. |
static void |
joinPolygons(PgPolygonSet polygonSet)
Join polygons of a polygon set to new polygons. |
static void |
makeManifold(PgElementSet geom)
Search for vertices with more than one coherent link of neighboured elements and disjoin those to good discrete manifold vertices, each belonging to one of the element links. |
static void |
markBoundaryEndPoints(PgElementSet geom)
Mark all start and end vertices of a PgElementSets boundary Polygons with the tag PsObject.IS_SELECTED. |
static int |
markFlatEdges(PgElementSet geom,
double eps)
Mark pairs of adjacent elements whose dihedral angle is less than a given threshold. |
static int |
markFlatRegions(PgElementSet geom,
double eps)
Mark flat regions by identifying adjacent elements whose dihedral angle is less or equal than a given threshold. |
static void |
markVertices(PgPointSet geom,
double eps)
Mark vertices which are identical, or within an epsilon box of each other. |
void |
ok()
Accept the current state of the geometry and close the workshop. |
static void |
orientate(PgElementSet geom)
Try to orientate all elements of the PgElementSet according to the orientation of all their neighbour elements. |
static void |
refineParameterLines(PgElementSet geom,
int grade)
Deprecated. method is moved to PwParameterLines. |
static void |
removeDegenerateElements(PgElementSet geom)
Deprecated. starting with JavaView 2.99.018 this functionality is provided by jv.geom.PuCleanMesh#removeDegenerateElements(PgElementSet). |
static void |
removeMarks(PgGeometry geom)
Remove tag IS_SELECTED from all vertices and elements in geometry. |
void |
reset()
Reset this workshop to its initial state from which computations can start. |
static PgElementSet[] |
splitIntoComponents(PgElementSet geom)
Split a surface into a set of connectivity components. |
| Methods inherited from class jvx.project.PjWorkshop |
cancel, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, init, isModal, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setViewer, update |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Constructor Detail |
public PwCleanMesh()
| Method Detail |
public void reset()
reset in class PjWorkshoppublic void close()
close in class PjWorkshoppublic void ok()
ok in class PjWorkshop
public static int markFlatEdges(PgElementSet geom,
double eps)
geom - geometry whose elements shall be identifiedeps - threshold in [0, 180]
public static int identifyFlatEdges(PgElementSet geom,
double eps)
geom - geometry whose elements shall be identifiedeps - threshold in [0, 180]
public static int identifyFlatRegions(PgElementSet geom,
double eps)
geom - Geometry whose vertices shall be identifiedeps - threshold in [0, 180]
public static int markFlatRegions(PgElementSet geom,
double eps)
geom - Geometry whose vertices shall be identifiedeps - threshold in [0, 180]
public static int identifyVertices(PgPointSet geom,
double eps)
geom - Geometry whose vertices shall be identifiedeps - tolerance of coordinate components, not distance
public static void markVertices(PgPointSet geom,
double eps)
geom - Geometry whose vertices shall be markedeps - tolerance of coordinate components, not distancepublic static void removeMarks(PgGeometry geom)
public static void removeDegenerateElements(PgElementSet geom)
public static boolean isDegenerated(PgElementSet geom)
PuMath
public static void collapseEdges(PgElementSet geom,
double eps)
eps - All edges with length smaller than eps are collapsed.public static void identifyEqualElements(PgElementSet geom)
public static void orientate(PgElementSet geom)
public static int getNumComponents(PgElementSet geom)
public static int computeConnectivityComponents(PgElementSet geom,
PiVector cc)
cc - To be filled array containing the component index for each element
public static PgElementSet[] splitIntoComponents(PgElementSet geom)
public static void joinPolygons(PgPolygonSet polygonSet)
public static void makeManifold(PgElementSet geom)
public static void markBoundaryEndPoints(PgElementSet geom)
public static boolean hasPlanarElements(PgElementSet geom,
double eps)
public static PgPolygonSet getParameterLines(PgElementSet geom)
public static void refineParameterLines(PgElementSet geom,
int grade)
public static void cutAlongPolygonSet(PgElementSet geom,
PgPolygonSet polygonSet)
HACK: Method expects the polygonSet indices to be the indices of elementSet vertices...
public static void closeHoles(PgElementSet geom)
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||