public class PwSimplifyTet extends PjWorkshop
HAS_BOUNDARY_PANEL, 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
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwSimplifyTet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
collapseEdge(PgTetraSet tetraSet,
int tetIndex,
int edgeIndex)
Collapse an edge in a PgTetraSet.
|
static void |
collapseFirstEdge(PgTetraSet tetraSet)
Test Method: Collapse edge with local index 0 in tetrahedron 0.
|
static void |
collapseHighestValenceEdge(PgTetraSet tetraSet)
Test Method: Collapse the edge with highest valence in a PgTetraSet.
|
static void |
collapseShortestEdge(PgTetraSet tetraSet)
Test Method: Collapse the shortest edge in a PgTetraSet.
|
void |
init()
Initialization.
|
void |
initializeQueue()
Compute the necessary combinatorial data structure,
Initialize Priority Queue.
|
static void |
moveVertex(PgTetraSet tetraSet,
int vertexIndex0,
int vertexIndex1)
Set vertex to edge mid point (if both vertices are interior vertices or if the
Edge is a boundary edge).
|
void |
setGeometry(PgGeometry geom)
Set the geometry to work on.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, removeGeometry, reset, setDisplay, setDisplays, setModal, setMode, setStandalone, setViewer
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, getName, setParent
public void init()
init
in class PjWorkshop
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void setGeometry(PgGeometry geom)
setGeometry
in interface PjWorkshopIf
setGeometry
in class PjWorkshop
geom
- the workshop modifies this geometry.public void initializeQueue()
public static void collapseHighestValenceEdge(PgTetraSet tetraSet)
public static void collapseShortestEdge(PgTetraSet tetraSet)
public static void collapseFirstEdge(PgTetraSet tetraSet)
public static void moveVertex(PgTetraSet tetraSet, int vertexIndex0, int vertexIndex1)
public static void collapseEdge(PgTetraSet tetraSet, int tetIndex, int edgeIndex)
"