JavaView® v2.00.008

jv.geom
Class PgElementEdge

java.lang.Object
  |
  +--jv.vecmath.P_Vector
        |
        +--jv.geom.PgElementEdge
All Implemented Interfaces:
java.io.Serializable

public class PgElementEdge
extends P_Vector

Edge of an element set with indices to both endpoints, adjacent elements, and local index of vertex in each element, whose neighbour refers to this edge.

There may be more than two elements joining an edge.

Version:
23.06.00, 2.00 revised (kp) Superclass changed to P_Vector to allow tagging.
02.04.00, 1.20 revised (kp) Allocate array of 2 during construction to avoid reallocation.
03.09.99, 1.10 revised (kp) Former inner class of PgElementSet converted to public class.
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
Serialized Form

Field Summary
protected  int[] m_elemInd
          Element indices containing edge.
protected  int[] m_neighbourLocInd
          Local index of vertex in each element such that neighbour value of vertex references to the neighbouring element at this edge.
protected  int m_vertInd0
          Edge endpoint with smallest vertex index.
protected  int m_vertInd1
          Edge endpoint with largest vertex index.
 
Fields inherited from class jv.vecmath.P_Vector
BITS, m_bits, m_constraint, m_name, MASK, NUM_BITS
 
Constructor Summary
PgElementEdge(int v1, int v2)
           
 
Method Summary
 void addElement(int elemInd, int neighInd)
          Add index of another element and the local index of its vertex opposite to the edge.
 int getEdgeInd(int ind)
          Get index of first or second vertex of edge.
 int getElementInd(int ind)
          Get index of element at position 'ind'.
 int[] getElements()
          Get array with indices of adjacent elements.
 int getNeighbourLocInd(int ind)
          Get local index of neighbour vertex of element at position 'ind'.
 int getSize()
          Get currently available number of adjacent elements.
 java.lang.String toString()
          Create a multi-line string representation with detailed information about all instance variables.
 
Methods inherited from class jv.vecmath.P_Vector
clearTag, clone, clone, copy, getBits, getName, hasTag, setName, setTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_vertInd0

protected int m_vertInd0
Edge endpoint with smallest vertex index.

m_vertInd1

protected int m_vertInd1
Edge endpoint with largest vertex index.

m_elemInd

protected int[] m_elemInd
Element indices containing edge. There may be more than two elements joining an edge, but only two elements are allowed for manifold polyhedrons.

m_neighbourLocInd

protected int[] m_neighbourLocInd
Local index of vertex in each element such that neighbour value of vertex references to the neighbouring element at this edge. I.e. triang.m_neighbour[elemInd].m_data[m_neighbourLocInd] = index of adjacent element
Constructor Detail

PgElementEdge

public PgElementEdge(int v1,
                     int v2)
Method Detail

toString

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

getSize

public int getSize()
Get currently available number of adjacent elements.

addElement

public void addElement(int elemInd,
                       int neighInd)
Add index of another element and the local index of its vertex opposite to the edge.

getEdgeInd

public int getEdgeInd(int ind)
Get index of first or second vertex of edge.
Parameters:
ind - index of first (ind==0) or second (ind==1) vertex of edge
Returns:
index of edge vertex within [0,numVertices-1], where numVertices refers to an element set.

getElements

public int[] getElements()
Get array with indices of adjacent elements.

getElementInd

public int getElementInd(int ind)
Get index of element at position 'ind'.

getNeighbourLocInd

public int getNeighbourLocInd(int ind)
Get local index of neighbour vertex of element at position 'ind'.

JavaView® v2.00.008

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