JavaView® v2.12

jvx.geom
Class PgVertexStar

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

public class PgVertexStar
extends PsObject

Vertex star of a vertex describes all elements which join a single vertex. The class contains information about

	element indices   of all elements around central vertex in counter-clockwise orientation.
	vertex indices    of all vertices in link in counter-clockwise orientation.
	local indices     of central vertex in each element.
 

Version:
01.04.00, 2.00 revised (kp) Moved from package jv.rsrc to jvx.rsrc.
13.09.99, 1.05 revised (kp) Revisions 1.01 and 1.02 merged into JavaView.
03.09.99, 1.04 revised (ur) Private reference to element set removed.
16.08.99, 1.03 revised (ur) makeVertexStar: Enabled using for not orientable ElementSets.
16.08.99, 1.02 revised (ep) Method getFirstElemInd added.
14.08.99, 1.01 revised (ep) Method isClosed added.
18.07.99, 1.00 created (kp)
Author:
Konrad Polthier
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
PgVertexStar()
           
 
Method Summary
 void copy(PsObject object)
          Copy base instance variables and prepend "copy_" resp.
 PiVector getElement()
          Get list of element indices of vertex star.
 int getFirstElemInd()
          Get the index of first elemInd in m_element array of vertex star.
 PiVector getLink()
          Get list of vertex indices of vertex star.
 int getSize()
          Get number of elements in vertex star.
 PiVector getVertexLocInd()
          Get list of local indices of central vertex in adjacent elements.
 void init()
          If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
 boolean isClosed()
          Returns whether vertex star around a point is closed.
 void makeVertexStar(PgElementSet elemSet, int vertexInd, int elemInd)
          Create vertex star for given vertex of element set.
 void setSize(int size, boolean closed)
          Set number of elements in vertex star.
 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, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, update, updatePanels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PgVertexStar

public PgVertexStar()
Method Detail

init

public void init()
Description copied from class: PsObject
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
Overrides:
init in class PsObject

toString

public java.lang.String toString()
Create a multi-line string representation with detailed information about all instance variables.
Overrides:
toString in class PsObject

copy

public void copy(PsObject object)
Description copied from class: PsObject
Copy base instance variables and prepend "copy_" resp. "copy(num)_" to name if identical to original object name. In general, only geometry data is copied, no material properties and no external links.
Overrides:
copy in class PsObject
Following copied from class: jv.object.PsObject
See Also:
PsObject.clone()

getElement

public PiVector getElement()
Get list of element indices of vertex star.

getLink

public PiVector getLink()
Get list of vertex indices of vertex star.

getVertexLocInd

public PiVector getVertexLocInd()
Get list of local indices of central vertex in adjacent elements.

isClosed

public boolean isClosed()
Returns whether vertex star around a point is closed. Vertex star is closed if and only if point lies in the interior of a surface. If point lies on the surface boundary then the vertex star is not closed.

getFirstElemInd

public int getFirstElemInd()
Get the index of first elemInd in m_element array of vertex star. If no first elemInd is supplied by user, then, if star is closed the m_firstElemInd is the first element of the surface referencing the central vertex, or, if star is not closed, the element on the boundary is taken such that one walks through the star counter-clockwise.

getSize

public int getSize()
Get number of elements in vertex star.

setSize

public void setSize(int size,
                    boolean closed)
Set number of elements in vertex star.

makeVertexStar

public void makeVertexStar(PgElementSet elemSet,
                           int vertexInd,
                           int elemInd)
Create vertex star for given vertex of element set. If elemInd==-1, then, if star is closed, elemInd is the first element referencing the central vertex, or, if star is not closed, the element on those boundary is taken such that one walks through the star counter-clockwise.
Parameters:
elemSet - PgElementSet
vertexInd - Index of vertex in global vertex array of elemSet
elemInd - Index of element in global element array which references the vertex, might be -1.
Returns:
true on success

JavaView® v2.12

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