|
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.PwModel
Utility programs for modeling operations on polyhedral surfaces. Contains static functions to, for example, shrink, truncate or stellate a polyhedral surface.
| Field Summary | |
static int |
EXTRUDE
|
static int |
PUNCH
|
static int |
SHRINK
|
static int |
STELLATE
|
static int |
TRUNCATE
|
static int |
TRUNCATEFILL
|
| 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 | |
PwModel()
Constructor. |
|
PwModel(PgElementSet geom)
Deprecated. use constructor prj=new PwModel();prj.setGeometry(geom);prj.reset(); |
|
| Method Summary | |
boolean |
compute()
Update the registered geometry based on the currently selected solid type. |
static void |
dual(PgElementSet geom)
Get the dual PgElementSet: Each vertex will be replaced by an element, having the center points of the adjacent elements as vertices; new boundary elements get two additional vertices at the boundary edge midpoints, if the vertex had only one adjacent element, the new element will contain also the old vertex. |
static void |
extrude(PgElementSet geom,
double factor)
Reduplicate geometry with vertices at the tips of the vertex normals and fill the gaps at the boundaries with quadrilaterals. |
int |
getModelingType()
Get the current modeling type. |
void |
init()
Initialisation. |
boolean |
isEnabledModeling()
Return flag whether to apply current modeling mode to the workshop's geometry. |
static void |
punch(PgElementSet geom,
double factor)
Cut out a shrinked copy from every element; the remaining face gets divided into quadrilaterals, each containing one edge of the original element and of the cut-out shrinked copy. |
void |
reset()
Reset workshop and geometry to original state. |
void |
setElementSet(PgElementSet geom)
Deprecated. use setGeometry(PgElementSet). |
void |
setEnabledModeling(boolean flag)
Define flag whether to apply current modeling mode to the workshop's geometry. |
void |
setGeometry(PgElementSet geom)
Overwrite the backup element set, on which the modeling tools will work. |
void |
setModelingType(int type)
Set the current modeling type. |
static void |
shrink(PgElementSet geom,
double factor)
Shrink every face of ElementSet by a constant factor; every face gets it's own edges and vertices, all neighbourhood information gets lost. |
static void |
stellate(PgElementSet geom,
double h)
Replace every face by a pyramide dimension of Elements gets set to 3. |
static void |
truncate(PgElementSet geom,
double factor,
boolean newFaces)
Truncate all vertices. |
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed. |
| Methods inherited from class jvx.project.PjWorkshop |
cancel, close, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setViewer |
| 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 |
| Field Detail |
public static final int SHRINK
public static final int TRUNCATE
public static final int STELLATE
public static final int TRUNCATEFILL
public static final int PUNCH
public static final int EXTRUDE
| Constructor Detail |
public PwModel(PgElementSet geom)
public PwModel()
| Method Detail |
public void init()
init in class PjWorkshoppublic void reset()
reset in class PjWorkshoppublic boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PjWorkshopevent - sender of this update.
public boolean compute()
setGeometry(PgElementSet),
setModelingType(int)public void setGeometry(PgElementSet geom)
public void setElementSet(PgElementSet geom)
public int getModelingType()
public void setModelingType(int type)
public void setEnabledModeling(boolean flag)
public boolean isEnabledModeling()
public static void shrink(PgElementSet geom,
double factor)
factor - shrinking factor
public static void stellate(PgElementSet geom,
double h)
h - height of pyramide
public static void truncate(PgElementSet geom,
double factor,
boolean newFaces)
geom - Geometry to operate on.factor - blend factor for VerticesnewFaces - true = replace truncated vertices with new faces
public static void punch(PgElementSet geom,
double factor)
factor - shrinking factor for the cut-out element.public static void dual(PgElementSet geom)
Create new boundary only when original geometry has boundary.
public static void extrude(PgElementSet geom,
double factor)
factor - Factor to multiply vertex normals with.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||