JavaView® v2.12

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:
06.06.01, 1.70 revised (ur) RemoveDegenerateElements method improved.
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, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS
 
Constructor Summary
PwCleanMesh()
           
 
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: - the vertices of an element must be pairwise different.
static void removeMarks(PgElementSet geom)
          Remove tag IS_SELECTED from all vertices in geometry.
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PwCleanMesh

public PwCleanMesh()
Method Detail

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 identified
eps - 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 marked
eps - 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: - the vertices of an element must be pairwise 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.

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.