HE_Mesh2014  2.0.11
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
wblut.hemesh.HE_Halfedge Class Reference
+ Inheritance diagram for wblut.hemesh.HE_Halfedge:

Public Member Functions

 HE_Halfedge ()
 
long key ()
 
HE_Halfedge getPrevInFace ()
 
HE_Halfedge getNextInFace ()
 
HE_Halfedge getNextInVertex ()
 
HE_Halfedge getPrevInVertex ()
 
HE_Halfedge getPair ()
 
void setNext (final HE_Halfedge he)
 
void setPrev (final HE_Halfedge he)
 
void setPair (final HE_Halfedge he)
 
WB_ClassificationConvex getHalfedgeType ()
 
WB_Vector getHalfedgeTangent ()
 
WB_Vector getEdgeTangent ()
 
WB_Point getHalfedgeCenter ()
 
WB_Point getEdgeCenter ()
 
HE_Halfedge getEdge ()
 
HE_Face getFace ()
 
void setFace (final HE_Face face)
 
HE_Vertex getVertex ()
 
HE_Vertex getStartVertex ()
 
void setVertex (final HE_Vertex vertex)
 
HE_Vertex getEndVertex ()
 
void clearNext ()
 
void clearPrev ()
 
void clearPair ()
 
void clearFace ()
 
void clearVertex ()
 
WB_Vector getEdgeNormal ()
 
WB_Vector getHalfedgeNormal ()
 
double getHalfedgeArea ()
 
double getHalfedgeDihedralAngle ()
 
String toString ()
 
int getColor ()
 
void setColor (final int color)
 
double getLength ()
 
boolean isEdge ()
 
boolean isBoundary ()
 
double getEdgeArea ()
 
double getEdgeDihedralAngle ()
 
void copyProperties (final HE_Halfedge el)
 
void clear ()
 
double getAngle ()
 
HE_TextureCoordinate getUVW ()
 
void clearUVW ()
 
void setUVW (final double u, final double v, final double w)
 
void setUVW (final WB_Coordinate uvw)
 
void setUVW (final HE_TextureCoordinate uvw)
 
boolean hasHalfedgeTexture ()
 
boolean hasTexture ()
 
- Public Member Functions inherited from wblut.hemesh.HE_Element
 HE_Element ()
 
final void setInternalLabel (final int label)
 
final void setLabel (final int label)
 
final long getKey ()
 
final int getInternalLabel ()
 
final int getLabel ()
 
int hashCode ()
 
boolean equals (final Object other)
 
void copyProperties (final HE_Element el)
 
abstract void clear ()
 
- Public Member Functions inherited from wblut.geom.WB_HasColor
void setColor (int color)
 

Private Attributes

HE_Vertex _vertex
 
HE_Halfedge _pair
 
HE_Halfedge _next
 
HE_Face _face
 
int hecolor
 
HE_TextureCoordinate uvw
 

Static Private Attributes

static WB_GeometryFactory gf = WB_GeometryFactory.instance()
 

Additional Inherited Members

- Protected Attributes inherited from wblut.hemesh.HE_Element
final long _key
 
- Static Protected Attributes inherited from wblut.hemesh.HE_Element
static long _currentKey
 
static final WB_GeometryFactory geometryfactory
 

Detailed Description

Half-edge element of half-edge data structure.

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HE_Halfedge.HE_Halfedge ( )

Instantiates a new HE_Halfedge.

Member Function Documentation

void wblut.hemesh.HE_Halfedge.clear ( )
void wblut.hemesh.HE_Halfedge.clearFace ( )

Clear face.

void wblut.hemesh.HE_Halfedge.clearNext ( )

Clear next.

void wblut.hemesh.HE_Halfedge.clearPair ( )

Clear pair.

void wblut.hemesh.HE_Halfedge.clearPrev ( )

Clear prev.

void wblut.hemesh.HE_Halfedge.clearUVW ( )
void wblut.hemesh.HE_Halfedge.clearVertex ( )

Clear vertex.

void wblut.hemesh.HE_Halfedge.copyProperties ( final HE_Halfedge  el)
Parameters
el
double wblut.hemesh.HE_Halfedge.getAngle ( )
Returns
int wblut.hemesh.HE_Halfedge.getColor ( )
Returns

Implements wblut.geom.WB_HasColor.

HE_Halfedge wblut.hemesh.HE_Halfedge.getEdge ( )

Get edge of halfedge.

Returns
edge
double wblut.hemesh.HE_Halfedge.getEdgeArea ( )

Get area of faces bounding edge.

Returns
area
WB_Point wblut.hemesh.HE_Halfedge.getEdgeCenter ( )
Returns
double wblut.hemesh.HE_Halfedge.getEdgeDihedralAngle ( )

Return angle between adjacent faces.

Returns
angle
WB_Vector wblut.hemesh.HE_Halfedge.getEdgeNormal ( )
Returns
WB_Vector wblut.hemesh.HE_Halfedge.getEdgeTangent ( )
Returns
HE_Vertex wblut.hemesh.HE_Halfedge.getEndVertex ( )

Get end vertex of halfedge.

Returns
vertex
HE_Face wblut.hemesh.HE_Halfedge.getFace ( )

Get face of halfedge.

Returns
face
double wblut.hemesh.HE_Halfedge.getHalfedgeArea ( )

Get area of faces bounding halfedge.

Returns
area
WB_Point wblut.hemesh.HE_Halfedge.getHalfedgeCenter ( )

Get center of halfedge.

Returns
center
double wblut.hemesh.HE_Halfedge.getHalfedgeDihedralAngle ( )

Get angle between adjacent faces.

Returns
angle
WB_Vector wblut.hemesh.HE_Halfedge.getHalfedgeNormal ( )

Get halfedge normal.

Returns
in-face normal of face, points inwards
WB_Vector wblut.hemesh.HE_Halfedge.getHalfedgeTangent ( )

Get tangent WB_Vector of halfedge.

Returns
tangent
WB_ClassificationConvex wblut.hemesh.HE_Halfedge.getHalfedgeType ( )

Get type of face vertex associated with halfedge.

Returns
HE.FLAT, HE.CONVEX, HE.CONCAVE
double wblut.hemesh.HE_Halfedge.getLength ( )
Returns
HE_Halfedge wblut.hemesh.HE_Halfedge.getNextInFace ( )

Get next halfedge in face.

Returns
next halfedge
HE_Halfedge wblut.hemesh.HE_Halfedge.getNextInVertex ( )

Get next halfedge in vertex.

Returns
next halfedge
HE_Halfedge wblut.hemesh.HE_Halfedge.getPair ( )

Get paired halfedge.

Returns
paired halfedge
HE_Halfedge wblut.hemesh.HE_Halfedge.getPrevInFace ( )

Get previous halfedge in face.

Returns
previous halfedge
HE_Halfedge wblut.hemesh.HE_Halfedge.getPrevInVertex ( )

Get previous halfedge in vertex.

Returns
previous halfedge
HE_Vertex wblut.hemesh.HE_Halfedge.getStartVertex ( )
Returns
HE_TextureCoordinate wblut.hemesh.HE_Halfedge.getUVW ( )
HE_Vertex wblut.hemesh.HE_Halfedge.getVertex ( )

Get vertex of halfedge.

Returns
vertex
boolean wblut.hemesh.HE_Halfedge.hasHalfedgeTexture ( )
boolean wblut.hemesh.HE_Halfedge.hasTexture ( )
boolean wblut.hemesh.HE_Halfedge.isBoundary ( )
Returns
boolean wblut.hemesh.HE_Halfedge.isEdge ( )
Returns
long wblut.hemesh.HE_Halfedge.key ( )

Get key.

Returns
key
void wblut.hemesh.HE_Halfedge.setColor ( final int  color)
void wblut.hemesh.HE_Halfedge.setFace ( final HE_Face  face)

Sets the face.

Parameters
facethe new face
void wblut.hemesh.HE_Halfedge.setNext ( final HE_Halfedge  he)

Set next halfedge in face.

Parameters
henext halfedge
void wblut.hemesh.HE_Halfedge.setPair ( final HE_Halfedge  he)

Mutually pair halfedges.

Parameters
hehalfedge to pair
void wblut.hemesh.HE_Halfedge.setPrev ( final HE_Halfedge  he)

Sets previous halfedge in face, only to be called by setNext.

Parameters
henext halfedge
void wblut.hemesh.HE_Halfedge.setUVW ( final double  u,
final double  v,
final double  w 
)
void wblut.hemesh.HE_Halfedge.setUVW ( final WB_Coordinate  uvw)
void wblut.hemesh.HE_Halfedge.setUVW ( final HE_TextureCoordinate  uvw)
void wblut.hemesh.HE_Halfedge.setVertex ( final HE_Vertex  vertex)

Sets the vertex.

Parameters
vertexthe new vertex
String wblut.hemesh.HE_Halfedge.toString ( )

Member Data Documentation

HE_Face wblut.hemesh.HE_Halfedge._face
private

Previous halfedge in face. Associated face.

HE_Halfedge wblut.hemesh.HE_Halfedge._next
private

Next halfedge in face.

HE_Halfedge wblut.hemesh.HE_Halfedge._pair
private

Halfedge pair.

HE_Vertex wblut.hemesh.HE_Halfedge._vertex
private

Start vertex of halfedge.

WB_GeometryFactory wblut.hemesh.HE_Halfedge.gf = WB_GeometryFactory.instance()
staticprivate
int wblut.hemesh.HE_Halfedge.hecolor
private

The _data.

HE_TextureCoordinate wblut.hemesh.HE_Halfedge.uvw
private

The documentation for this class was generated from the following file: