|
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
jv.project.PgGeometry
jv.geom.PgPointSet
jv.geom.PgPolygon
jv.geom.PgBndPolygon
Boundary polygon of PgElementSets with reference to boundary vertices and elements. Polygon may have boundary constraints for variational problems. Call: bndsh (n, bnd) bndinv (from, to, nedges, a, b) invert() bndcp (from, to, nedges, a, b) bndcpy (from, to, nedges, a, b) bndcmp (a, b, eps) bndtst (a, eps) bnd_id (a, b, i) bnd_shrink (a) bnd_dist (a, b, dist, orient) bnd_cmp_paste (a, b, maxDist) bnd_cmp_logic (a, b, eps) bnd_paste (a, b, type) g_bnd_curve_invert (a)
PgPointSet,
Serialized Form| Field Summary |
| Fields inherited from class jv.geom.PgPolygon |
BINORMAL, CURVATURE_NORMAL, NORMAL, OFFSET_NORMAL |
| 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 | |
PgBndPolygon(int aVertexDim)
|
|
| Method Summary | |
boolean |
applyModelingMatrix()
Multiply the modeling matrix to all vertices and vectors. |
boolean |
assignVertices()
Update the vertices of the polygon. |
boolean |
blend(double s,
PgGeometry ag,
double t,
PgGeometry bg)
Blend between two polygon using this = s*a + t*b. |
int |
bnd_cmp_logic(PgBndPolygon b,
double maxDist)
Parameters: PgBndPolygon a, pointer on structure of bnd_curve PgBndPolygon b, pointer on structure of bnd_curve Returnvalue: int 0: boundaries are not equal 1: bnd's are equal with m_vertexInd.m_data[0] = b.m_vertexInd.m_data[0] -1: bnd's are invers equal with m_vertexInd.m_data[0] = b.m_vertexInd.m_data[nop-1] Description: compare boundaries of one triang2d structure, they may have different number of vertices. |
int |
bnd_cmp_paste(PgBndPolygon b,
double maxDist)
Parameters: PgBndPolygon a, pointer on structure of bnd_curve PgBndPolygon b, pointer on structure of bnd_curve Returnvalue: int 0: boundaries cannot be pasted, angle > MAX_PASTE_ANGLE (in degrees) 11: beginning of a and b may be pasted 12: beginning of a and end of b may be pasted 21: end of a and beginning of b may be pasted 22: end of a and b may be pasted Description: compare two bnd's of a triang2d structure w.r.t. pasting |
double |
bnd_dist(PgBndPolygon b)
Parameters: PgBndPolygon a, pointer to structure of bnd_curve PgBndPolygon b, pointer to structure of bnd_curve return: double dist distance of two boundaries int *orient 1: bnd's have same direction, i.e. |
boolean |
bnd_id(PgBndPolygon b,
int orient)
Parameters: PgBndPolygon a, pointer to structure of type bnd_curve PgBndPolygon b, pointer to structure of type bnd_curve int orient, orientation marker orient >=0 : bnd's are equal orient < 0 : bnd's are invers equal Returnvalue: --- Description: identify boundaries History: created: 29.12.97 Konrad Polthier |
boolean |
bnd_paste(PgBndPolygon b,
int type)
Parameters: PgBndPolygon a, pointer on structure of bnd_curve PgBndPolygon b, pointer on structure of bnd_curve Returnvalue: int 0: paste didn't work 1: paste succeeded Description: paste two bnd's of a triang2d structure paste b at the end of a |
boolean |
bnd_shrink()
Identify a boundary curve to a single point. |
int |
bndcmp(PgBndPolygon b,
double maxDist)
Parameters: PgBndPolygon a, pointer on structure of bnd_curve PgBndPolygon b, pointer on structure of bnd_curve Returnvalue: int 0: boundaries are not equal 1: bnd's are equal: a.m_vertexInd.m_data[i] = b.m_vertexInd.m_data[i] -1: bnd's are invers equal: a.m_vertexInd.m_data[i] = b.m_vertexInd.m_data[nop-1-i] Description: compare boundaries of one triang2d structure |
static void |
bndcp(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
Parameters: int from, vertexno of beginning of source bnd_curve int to, vertexno of beginning of destination bnd_curve int nedges, number of edges to copy PgBndPolygon a, pointer on structure of source bnd_curve PgBndPolygon b, pointer on structure of destination bnd_curve Returnvalue: --- Description: copy part of bnd_curve number of edges = number of vertices - 1 |
static void |
bndcpy(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
Parameters: int from, vertexno of beginning of source bnd_curve int to, vertexno of beginning of destination bnd_curve int nedges, number of edges to copy PgBndPolygon a, pointer on structure of source bnd_curve PgBndPolygon b, pointer on structure of destination bnd_curve Returnvalue: --- Description: copy part of bnd_curve number of edges = number of vertices |
static boolean |
bndinv(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
Parameters: int from, vertexno of beginning of source bnd_curve int to, vertexno of end of destination bnd_curve int nedges, number of edges to copy PgBndPolygon a, pointer on structure of source bnd_curve PgBndPolygon b, pointer on structure of destination bnd_curve Description: copy part of bnd_curve in reverse order |
boolean |
bndsh(int n)
Parameters: int n, length of shift PgBndPolygon bnd, pointer on structure of bnd_curve Returnvalue: --- Description: shifts vertices and neighbours from beginning to end of bnd_curve |
int |
bndtst(double maxDist)
Parameters: double maxDist tolerance to first bnd vertex Returnvalue: int 0: some bnd_curve points are equal 1: all bnd_curve points are equal -1: all bnd_curve points are different Description: tests whether bnd_curve is a single point |
java.lang.Object |
clone()
Duplicate geometry by recursively cloning all instance variables except inspector panels and lists of registered listeners. |
boolean |
constrain()
Project boundary vertices of element set onto curves determined by boundary constraints. |
void |
copy(PsObject object)
Copies data from given boundary curve. |
PgBndConstraint |
getBndConstraint()
|
PiVector |
getElementInd()
|
PgElementSet |
getElementSet()
|
PiVector |
getNeighbourLocInd()
|
int |
getNumElements()
Get number of elements adjacent to the boundary. |
PiVector |
getVertexInd()
|
void |
init()
Initialize and reset instance variables after call to super.init(). |
boolean |
invert()
Returnvalue: --- Description: invert bnd_curve to reverse order |
boolean |
isConforming()
Return true if boundary belongs to conforming element set
and boundary has been updated. |
void |
makeConforming()
Modify vertex indices of a boundary after elementSet has been made conforming again. |
boolean |
makeElementInd()
After the vertexInd have been assign, this method fills the elementInd vector by asking the triangulation for edges. |
void |
makeNonConforming()
Modify vertex indices of a boundary after elementSet has been made non-conforming. |
boolean |
merge(PgBndPolygon b)
Merge boundary polygon with current object into 'this' and identify last vertex of 'this' with first vertex of argument curve. |
void |
paint(PvGeometryIf dc)
Major rendering method fills an internal container class supplied by the display. |
void |
setBndConstraint(PgBndConstraint bndConstraint)
|
void |
setElementSet(PgElementSet aTriang)
|
java.lang.String |
toString()
Create a multi-line string representation with detailed information about all instance variables. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.project.PgGeometryIf |
assureInspector, getInfoPanel, getName, hasTag, setName |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, setParent |
| Constructor Detail |
public PgBndPolygon(int aVertexDim)
| Method Detail |
public void init()
PgPolygon
init in class PgPolygonpublic java.lang.Object clone()
null.
Link to associated element set is set to null.
clone in interface PgGeometryIfclone in class PgPolygoncopy(PsObject)public void copy(PsObject object)
The argument was changed from PgGeometry to PsObject since there were problems in J/Link which preferred to use PsObject#copy(PsObject) instead of PgGeometry#copy(PsObject).
copy in class PgPolygonPgPolygon.clone()public java.lang.String toString()
toString in interface PgGeometryIftoString in class PgPolygonpublic boolean applyModelingMatrix()
applyModelingMatrix in class PgPointSettrue if operation was applied successfully.public int getNumElements()
public PgElementSet getElementSet()
public PiVector getVertexInd()
public PiVector getElementInd()
public PiVector getNeighbourLocInd()
public PgBndConstraint getBndConstraint()
public void setBndConstraint(PgBndConstraint bndConstraint)
public void setElementSet(PgElementSet aTriang)
public void paint(PvGeometryIf dc)
PgPolygonjv.project.PgGeometryIf for detailed information.
paint in interface PgGeometryIfpaint in class PgPolygonPgGeometryIfpublic boolean isConforming()
true if boundary belongs to conforming element set
and boundary has been updated.
public void makeNonConforming()
PnConjugate.makeConforming(jv.geom.PgElementSet),
PnConjugate.makeNonConforming(jv.geom.PgElementSet)public void makeConforming()
PnConjugate.makeConforming(jv.geom.PgElementSet),
PnConjugate.makeNonConforming(jv.geom.PgElementSet)public boolean assignVertices()
public boolean makeElementInd()
public boolean bndsh(int n)
public static boolean bndinv(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
public boolean invert()
public static void bndcp(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
public static void bndcpy(int from,
int to,
int nedges,
PgBndPolygon a,
PgBndPolygon b)
public int bndcmp(PgBndPolygon b,
double maxDist)
public int bndtst(double maxDist)
public boolean bnd_shrink()
PsObject#IS_DELETED.
Boundary curve itself is marked deleted too. The boundary edges are
removed from adjacent elements respectively elements with three edges are removed.
public boolean bnd_id(PgBndPolygon b,
int orient)
public double bnd_dist(PgBndPolygon b)
public int bnd_cmp_paste(PgBndPolygon b,
double maxDist)
public boolean bnd_paste(PgBndPolygon b,
int type)
public int bnd_cmp_logic(PgBndPolygon b,
double maxDist)
public boolean merge(PgBndPolygon b)
b - PgBndPolygon to be merged into 'this'
true if merge was successfull
public boolean blend(double s,
PgGeometry ag,
double t,
PgGeometry bg)
this = s*a + t*b.
blend in interface PgGeometryIfblend in class PgPolygons - weight of vertices of first boundary polygonag - first boundary polygon used for blendingt - weight of vertices of second boundary polygonbg - second boundary polygon used for blending
public boolean constrain()
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||