JavaView® v2.00.008

jvx.geom
Class PwModel

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.geom.PwModel
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public class PwModel
extends PsObject

Utility programs for modeling of PgElementSet. Contains static functions to shrink, truncate or stellate an PgElementSet.

Version:
14.12.00, 1.30 revised (ur) New Method punch added, tiny changes in method stellate.
14.11.00, 1.20 revised (ur) Adjust vertex textures and element textures.
10.11.00, 1.10 revised (ur) Bug in maintaining boundary polygons removed, adjusting of
vertex and element colors enabled.
19.10.99, 1.02 revised (ur) TruncateFill modified to adjust boundary polygons to the new
surface, truncate and shrink to set geom.m_bndList.length to zero.
06.10.99, 1.01 revised (ur) TruncateFill modified to add faces at vertices with only one touching face.
26.07.99, 1.00 created (ur)
Author:
Ulrich Reitebuch
See Also:
Serialized Form

Field Summary
protected  boolean m_bUpdateSender
           
protected  PgElementSet m_elementSet
           
protected  PgElementSet m_elementSetCopy
           
 
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
 
Constructor Summary
PwModel(PgElementSet anElementSet)
          Constructor
 
Method Summary
static PsDialog getDialog(PgElementSet anElementSet)
          Open dialog window and create a new instance of PwModel.
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.
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 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, updatePanels
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_elementSet

protected PgElementSet m_elementSet

m_elementSetCopy

protected PgElementSet m_elementSetCopy

m_bUpdateSender

protected boolean m_bUpdateSender
Constructor Detail

PwModel

public PwModel(PgElementSet anElementSet)
Constructor
Method Detail

getDialog

public static PsDialog getDialog(PgElementSet anElementSet)
Open dialog window and create a new instance of PwModel.

update

public boolean update(java.lang.Object event)
Update the class whenever a child has changed. Method is usually invoked from the children.
Overrides:
update in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.setParent(PsUpdateIf), PsObject.getFather(), PsObject.addUpdateListener(PsUpdateIf)

shrink

public 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.
Parameters:
double - factor shrinking factor

stellate

public static void stellate(PgElementSet geom,
                            double h)
Replace every face by a pyramide dimension of Elements gets set to 3.
Parameters:
double - h height of pyramide

truncate

public static void truncate(PgElementSet geom,
                            double factor,
                            boolean newFaces)
Truncate all vertices
Parameters:
double - factor blend factor for Vertices
boolean - newFaces true = replace truncated vertices with new faces

punch

public 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.
Parameters:
double - factor shrinking factor for the cut-out element.

JavaView® v2.00.008

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