jvx.geom
Class PwCleanMesh
java.lang.Object
|
+--jv.object.PsObject
|
+--jvx.geom.PwCleanMesh
- All Implemented Interfaces:
- java.lang.Cloneable, PsUpdateIf, java.io.Serializable
- public class PwCleanMesh
- extends PsObject
Utility programs for cleaning and correcting a polyhedral mesh.
Contains static functions to operate on a PgElementSet.
- Version:
- 02.02.01, 1.60 revised (ur) New Method orientate(PgElementSet) added.
13.12.00, 1.50 revised (ur) Methods markVertices and removeMarks added.
21.11.00, 1.40 revised (ur) Added method getDialog().
21.11.00, 1.30 revised (ep) Added method isDegenerated(PgElementSet).
15.06.00, 1.20 revised (kp) Added method identifyVertices().
27.04.00, 1.10 revised (kp) Method adapt() moved from PgElementSet into this workshop.
25.01.00, 1.00 created (ur)
- Author:
- Konrad Polthier, Ulrich Reitebuch
- See Also:
- Serialized Form
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS |
|
Method Summary |
static void |
getDialog(PgElementSet geom)
Get dialog to configurate identifying of close or equal vertices. |
static int |
identifyVertices(PgElementSet geom,
double eps)
Identify vertices which are identical, or within an epsilon box of each other. |
static boolean |
isDegenerated(PgElementSet geom)
Checks whether edges of elements have length smaller than PuMath.EPS. |
static void |
markVertices(PgElementSet geom,
double eps)
Mark vertices which are identical, or within an epsilon box of each other. |
static void |
orientate(PgElementSet elSet)
Try to orientate all elements of the PgElementSet according to
the orientation of all their neighbour elements. |
static void |
removeDegenerateElements(PgElementSet geom)
Adapt triangulation to the following conventions:
- subsequent vertices of an element must be different.
|
static void |
removeMarks(PgElementSet geom)
Remove tag IS_SELECTED from all vertices in geometry. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, update, updatePanels |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PwCleanMesh
public PwCleanMesh()
identifyVertices
public static int identifyVertices(PgElementSet geom,
double eps)
- Identify vertices which are identical, or within an epsilon box of each other.
- Parameters:
geom - Geometry whose vertices shall be identifiedeps - tolerance of coordinate components, not distance- Returns:
- number of removed vertices
markVertices
public static void markVertices(PgElementSet geom,
double eps)
- Mark vertices which are identical, or within an epsilon box of each other.
- Parameters:
geom - Geometry whose vertices shall be markedeps - tolerance of coordinate components, not distance
removeMarks
public static void removeMarks(PgElementSet geom)
- Remove tag IS_SELECTED from all vertices in geometry.
getDialog
public static void getDialog(PgElementSet geom)
- Get dialog to configurate identifying of close or equal vertices.
removeDegenerateElements
public static void removeDegenerateElements(PgElementSet geom)
- Adapt triangulation to the following conventions:
- subsequent vertices of an element must be different.
- every element has at least three vertices.
isDegenerated
public static boolean isDegenerated(PgElementSet geom)
- Checks whether edges of elements have length smaller than PuMath.EPS.
- See Also:
PuMath
orientate
public static void orientate(PgElementSet elSet)
- Try to orientate all elements of the PgElementSet according to
the orientation of all their neighbour elements. This will obviously
lead to a success only for orientable surfaces.
The software JavaView® is copyright protected. All Rights Reserved.