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

Public Member Functions

 HE_MeshStructure ()
 
 HE_MeshStructure (final HE_MeshStructure ms)
 
void getFacesWithNormal (final WB_Coord n, final double ta)
 
final void add (final HE_Face f)
 
final void add (final HE_Halfedge he)
 
final void add (final HE_Vertex v)
 
final void addFaces (final HE_Face[] faces)
 
final void addFaces (final Collection< HE_Face > faces)
 
final void addFaces (final HE_MeshStructure source)
 
final void addHalfedges (final HE_Halfedge[] halfedges)
 
final void addHalfedges (final Collection< HE_Halfedge > halfedges)
 
final void addHalfedges (final HE_MeshStructure source)
 
final void addEdges (final HE_MeshStructure source)
 
final void addVertices (final HE_Vertex[] vertices)
 
final void addVertices (final HE_MeshStructure source)
 
final void addVertices (final Collection< HE_Vertex > vertices)
 
void clear ()
 
final void clearFaces ()
 
final void clearHalfedges ()
 
final void clearEdges ()
 
final void clearVertices ()
 
final boolean contains (final HE_Face f)
 
final boolean contains (final HE_Halfedge he)
 
final boolean contains (final HE_Vertex v)
 
final WB_AABB getAABB ()
 
final WB_Sphere getBoundingSphere ()
 
final HE_Face getFaceByIndex (final int i)
 
final HE_Face getFaceWithIndex (final int i)
 
final HE_Halfedge getHalfedgeByIndex (final int i)
 
final HE_Halfedge getHalfedgeWithIndex (final int i)
 
final HE_Halfedge getEdgeWithIndex (final int i)
 
final HE_Halfedge getEdgeByIndex (final int i)
 
final HE_Vertex getVertexByIndex (final int i)
 
final HE_Vertex getVertexWithIndex (final int i)
 
final double[] getLimits ()
 
final double[] limits ()
 
int getNumberOfEdges ()
 
final int getNumberOfFaces ()
 
final int getNumberOfHalfedges ()
 
final int getNumberOfVertices ()
 
final void remove (final HE_Face f)
 
final void remove (final HE_Halfedge he)
 
final void remove (final HE_Vertex v)
 
final void removeFace (final int i)
 
final void removeFaces (final HE_Face[] faces)
 
final void removeFaces (final Collection< HE_Face > faces)
 
final void removeHalfedges (final HE_Halfedge[] halfedges)
 
final void removeHalfedges (final Collection< HE_Halfedge > halfedges)
 
final void removeVertex (final int i)
 
final void removeVertices (final HE_Vertex[] vertices)
 
final void removeVertices (final Collection< HE_Vertex > vertices)
 
final List< HE_VertexgetVertices ()
 
final List< HE_HalfedgegetHalfedges ()
 
final List< HE_HalfedgegetEdges ()
 
final List< HE_FacegetFaces ()
 
final boolean containsFace (final long key)
 
final boolean containsHalfedge (final long key)
 
final boolean containsEdge (final long key)
 
final boolean containsVertex (final long key)
 
final int getIndex (final HE_Face f)
 
final int getIndex (final HE_Vertex v)
 
HE_VertexIterator vItr ()
 
HE_EdgeIterator eItr ()
 
HE_HalfedgeIterator heItr ()
 
HE_FaceIterator fItr ()
 
final HE_Halfedge[] getEdgesAsArray ()
 
final List< HE_HalfedgegetEdgesAsList ()
 
final HE_Face getFaceByKey (final long key)
 
final HE_Face getFaceWithKey (final long key)
 
final HE_Face[] getFacesAsArray ()
 
final List< HE_FacegetFacesAsList ()
 
final HE_Halfedge getHalfedgeByKey (final long key)
 
final HE_Halfedge getHalfedgeWithKey (final long key)
 
final HE_Halfedge getEdgeWithKey (final long key)
 
final HE_Halfedge[] getHalfedgesAsArray ()
 
final List< HE_HalfedgegetHalfedgesAsList ()
 
final HE_Vertex getVertexByKey (final long key)
 
final HE_Vertex getVertexWithKey (final long key)
 
final HE_Vertex[] getVerticesAsArray ()
 
final List< HE_VertexgetVerticesAsList ()
 
HE_Path createPathFromIndices (final int[] vertices, final boolean loop)
 
HE_Halfedge searchHalfedgeFromTo (final HE_Vertex v0, final HE_Vertex v1)
 
void setFace (final HE_Halfedge he, final HE_Face f)
 
void clearFace (final HE_Halfedge he)
 
void setPair (final HE_Halfedge he1, final HE_Halfedge he2)
 
void clearPair (final HE_Halfedge he)
 
void setNext (final HE_Halfedge he, final HE_Halfedge hen)
 
void setVertex (final HE_Halfedge he, final HE_Vertex v)
 
void setHalfedge (final HE_Face f, final HE_Halfedge he)
 
void clearHalfedge (final HE_Face f)
 
void setHalfedge (final HE_Vertex v, final HE_Halfedge he)
 
void clearHalfedge (final HE_Vertex v)
 
void clearNext (final HE_Halfedge he)
 
void clearPrev (final HE_Halfedge he)
 
void clearVertex (final HE_Halfedge he)
 
void fixHalfedgeVertexAssignment ()
 
List< HE_HalfedgegetUnpairedHalfedges ()
 
- Public Member Functions inherited from wblut.hemesh.HE_MeshElement
 HE_MeshElement ()
 
void clearVisited ()
 
void setVisited ()
 
boolean isVisited ()
 
int hashCode ()
 
boolean equals (final Object other)
 
void copyProperties (final HE_MeshElement el)
 
- Public Member Functions inherited from wblut.hemesh.HE_Element
 HE_Element ()
 
final void setInternalLabel (final int label)
 
final void setTemporaryLabel (final int label)
 
final void setLabel (final int label)
 
final long getKey ()
 
final int getInternalLabel ()
 
final int getTemporaryLabel ()
 
final int getLabel ()
 
int hashCode ()
 
boolean equals (final Object other)
 
void copyProperties (final HE_Element el)
 

Protected Member Functions

final void replaceFaces (final HE_Face[] faces)
 
final void replaceFaces (final HE_Mesh mesh)
 
final void replaceVertices (final HE_Mesh mesh)
 
final void replaceHalfedges (final HE_Mesh mesh)
 
final void replaceFaces (final List< HE_Face > faces)
 
final void replaceHalfedges (final HE_Halfedge[] halfedges)
 
final void replaceHalfedges (final List< HE_Halfedge > halfedges)
 
final void replaceVertices (final HE_Vertex[] vertices)
 
final void replaceVertices (final List< HE_Vertex > vertices)
 
- Protected Member Functions inherited from wblut.hemesh.HE_MeshElement
abstract void clear ()
 
- Protected Member Functions inherited from wblut.hemesh.HE_Element
abstract void clear ()
 

Protected Attributes

HE_RAS< HE_Vertexvertices
 
HE_RAS< HE_Halfedgehalfedges
 
HE_RAS< HE_Halfedgeedges
 
HE_RAS< HE_HalfedgeunpairedHalfedges
 
HE_RAS< HE_Facefaces
 
- Protected Attributes inherited from wblut.hemesh.HE_MeshElement
boolean visited
 
- Protected Attributes inherited from wblut.hemesh.HE_Element
final long _key
 
long _labels
 

Additional Inherited Members

- Static Protected Attributes inherited from wblut.hemesh.HE_MeshElement
static final WB_GeometryFactory geometryfactory = WB_GeometryFactory.instance()
 
static final WB_ProgressTracker tracker = WB_ProgressTracker.instance()
 
- Static Protected Attributes inherited from wblut.hemesh.HE_Element
static AtomicLong _currentKey =new AtomicLong(0)
 

Detailed Description

Collection of mesh elements. Contains methods to manipulate selections

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HE_MeshStructure.HE_MeshStructure ( )

Instantiates a new HE_Selection.

wblut.hemesh.HE_MeshStructure.HE_MeshStructure ( final HE_MeshStructure  ms)
Parameters
ms

Member Function Documentation

final void wblut.hemesh.HE_MeshStructure.add ( final HE_Face  f)

Add face.

Parameters
fface to add
final void wblut.hemesh.HE_MeshStructure.add ( final HE_Halfedge  he)

Adds Halfedge.

Parameters
hehalfedge to add
final void wblut.hemesh.HE_MeshStructure.add ( final HE_Vertex  v)

Add vertex.

Parameters
vvertex to add
final void wblut.hemesh.HE_MeshStructure.addEdges ( final HE_MeshStructure  source)
Parameters
source
final void wblut.hemesh.HE_MeshStructure.addFaces ( final HE_Face[]  faces)

Adds faces.

Parameters
facesfaces to add as HE_Face[]
final void wblut.hemesh.HE_MeshStructure.addFaces ( final Collection< HE_Face faces)

Adds faces.

Parameters
facesfaces to add as List<HE_Face>
final void wblut.hemesh.HE_MeshStructure.addFaces ( final HE_MeshStructure  source)
Parameters
source
final void wblut.hemesh.HE_MeshStructure.addHalfedges ( final HE_Halfedge[]  halfedges)

Adds halfedges.

Parameters
halfedgeshalfedges to add as HE_Halfedge[]
final void wblut.hemesh.HE_MeshStructure.addHalfedges ( final Collection< HE_Halfedge halfedges)

Adds halfedges.

Parameters
halfedgeshalfedges to add as List<HE_Halfedge>
final void wblut.hemesh.HE_MeshStructure.addHalfedges ( final HE_MeshStructure  source)
Parameters
source
final void wblut.hemesh.HE_MeshStructure.addVertices ( final HE_Vertex[]  vertices)

Adds vertices.

Parameters
verticesvertices to add as HE_Vertex[]
final void wblut.hemesh.HE_MeshStructure.addVertices ( final HE_MeshStructure  source)
Parameters
source
final void wblut.hemesh.HE_MeshStructure.addVertices ( final Collection< HE_Vertex vertices)

Adds vertices.

Parameters
verticesvertices to add as List<HE_Vertex>
void wblut.hemesh.HE_MeshStructure.clear ( )

Clear entire structure.

final void wblut.hemesh.HE_MeshStructure.clearEdges ( )

Clear edges.

void wblut.hemesh.HE_MeshStructure.clearFace ( final HE_Halfedge  he)
Parameters
he
final void wblut.hemesh.HE_MeshStructure.clearFaces ( )

Clear faces.

void wblut.hemesh.HE_MeshStructure.clearHalfedge ( final HE_Face  f)
Parameters
f
void wblut.hemesh.HE_MeshStructure.clearHalfedge ( final HE_Vertex  v)
Parameters
v
final void wblut.hemesh.HE_MeshStructure.clearHalfedges ( )

Clear halfedges.

void wblut.hemesh.HE_MeshStructure.clearNext ( final HE_Halfedge  he)
Parameters
he
void wblut.hemesh.HE_MeshStructure.clearPair ( final HE_Halfedge  he)
Parameters
he
void wblut.hemesh.HE_MeshStructure.clearPrev ( final HE_Halfedge  he)
Parameters
he
void wblut.hemesh.HE_MeshStructure.clearVertex ( final HE_Halfedge  he)
Parameters
he
final void wblut.hemesh.HE_MeshStructure.clearVertices ( )

Clear vertices.

final boolean wblut.hemesh.HE_MeshStructure.contains ( final HE_Face  f)

Check if structure contains face.

Parameters
fface
Returns
true, if successful
final boolean wblut.hemesh.HE_MeshStructure.contains ( final HE_Halfedge  he)

Check if structure contains halfedge.

Parameters
hehalfedge
Returns
true, if successful
final boolean wblut.hemesh.HE_MeshStructure.contains ( final HE_Vertex  v)

Check if structure contains vertex.

Parameters
vvertex
Returns
true, if successful
final boolean wblut.hemesh.HE_MeshStructure.containsEdge ( final long  key)
Parameters
key
Returns
final boolean wblut.hemesh.HE_MeshStructure.containsFace ( final long  key)
Parameters
key
Returns
final boolean wblut.hemesh.HE_MeshStructure.containsHalfedge ( final long  key)
Parameters
key
Returns
final boolean wblut.hemesh.HE_MeshStructure.containsVertex ( final long  key)
Parameters
key
Returns
HE_Path wblut.hemesh.HE_MeshStructure.createPathFromIndices ( final int[]  vertices,
final boolean  loop 
)
Parameters
vertices
loop
Returns
HE_EdgeIterator wblut.hemesh.HE_MeshStructure.eItr ( )

Edge iterator.

Returns
edge iterator
HE_FaceIterator wblut.hemesh.HE_MeshStructure.fItr ( )
Returns
void wblut.hemesh.HE_MeshStructure.fixHalfedgeVertexAssignment ( )

Fix halfedge vertex assignment.

final WB_AABB wblut.hemesh.HE_MeshStructure.getAABB ( )

Get axis-aligned bounding box surrounding mesh.

Returns
WB_AABB axis-aligned bounding box
final WB_Sphere wblut.hemesh.HE_MeshStructure.getBoundingSphere ( )
Returns
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getEdgeByIndex ( final int  i)
Parameters
i
Returns
Deprecated:
Use getEdgeWithIndex(int) instead
final List<HE_Halfedge> wblut.hemesh.HE_MeshStructure.getEdges ( )
Returns
final HE_Halfedge [] wblut.hemesh.HE_MeshStructure.getEdgesAsArray ( )

Edges as array.

Returns
all edges as HE_Halfedge[]
final List<HE_Halfedge> wblut.hemesh.HE_MeshStructure.getEdgesAsList ( )

Edges as arrayList.

Returns
all vertices as FastTable<HE_Halfedge>
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getEdgeWithIndex ( final int  i)
Parameters
i
Returns
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getEdgeWithKey ( final long  key)

Get edge.

Parameters
keyhalfedge key
Returns
halfedge
final HE_Face wblut.hemesh.HE_MeshStructure.getFaceByIndex ( final int  i)
Parameters
i
Returns
Deprecated:
Use getFaceWithIndex(int) instead
final HE_Face wblut.hemesh.HE_MeshStructure.getFaceByKey ( final long  key)

Get face.

Parameters
keyface key
Returns
face
Deprecated:
Use getFaceWithKey(long) instead
final List<HE_Face> wblut.hemesh.HE_MeshStructure.getFaces ( )
Returns
final HE_Face [] wblut.hemesh.HE_MeshStructure.getFacesAsArray ( )

Faces as array.

Returns
all faces as HE_Face[]
final List<HE_Face> wblut.hemesh.HE_MeshStructure.getFacesAsList ( )

Faces as arrayList.

Returns
all vertices as FastTable<HE_Face>
void wblut.hemesh.HE_MeshStructure.getFacesWithNormal ( final WB_Coord  n,
final double  ta 
)
Parameters
n
ta
final HE_Face wblut.hemesh.HE_MeshStructure.getFaceWithIndex ( final int  i)
Parameters
i
Returns
final HE_Face wblut.hemesh.HE_MeshStructure.getFaceWithKey ( final long  key)

Get face.

Parameters
keyface key
Returns
face
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getHalfedgeByIndex ( final int  i)
Parameters
i
Returns
Deprecated:
Use getHalfedgeWithIndex(int) instead
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getHalfedgeByKey ( final long  key)

Get halfedge.

Parameters
keyhalfedge key
Returns
halfedge
Deprecated:
Use getHalfedgeWithKey(long) instead
final List<HE_Halfedge> wblut.hemesh.HE_MeshStructure.getHalfedges ( )
Returns
final HE_Halfedge [] wblut.hemesh.HE_MeshStructure.getHalfedgesAsArray ( )

Halfedges as array.

Returns
all halfedges as HE_Halfedge[]
final List<HE_Halfedge> wblut.hemesh.HE_MeshStructure.getHalfedgesAsList ( )

Halfedges as arrayList.

Returns
all vertices as FastTable<HE_Halfedge>
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getHalfedgeWithIndex ( final int  i)
Parameters
i
Returns
final HE_Halfedge wblut.hemesh.HE_MeshStructure.getHalfedgeWithKey ( final long  key)

Get halfedge.

Parameters
keyhalfedge key
Returns
halfedge
final int wblut.hemesh.HE_MeshStructure.getIndex ( final HE_Face  f)
Parameters
f
Returns
final int wblut.hemesh.HE_MeshStructure.getIndex ( final HE_Vertex  v)
Parameters
v
Returns
final double [] wblut.hemesh.HE_MeshStructure.getLimits ( )

Get range of vertex coordinates.

Returns
array of limit values: min x, min y, min z, max x, max y, max z
int wblut.hemesh.HE_MeshStructure.getNumberOfEdges ( )

Number of edges.

Returns
the number of edges
final int wblut.hemesh.HE_MeshStructure.getNumberOfFaces ( )

Number of faces.

Returns
the number of faces
final int wblut.hemesh.HE_MeshStructure.getNumberOfHalfedges ( )

Number of halfedges.

Returns
the number of halfedges
final int wblut.hemesh.HE_MeshStructure.getNumberOfVertices ( )

Number of vertices.

Returns
the number of vertices
List<HE_Halfedge> wblut.hemesh.HE_MeshStructure.getUnpairedHalfedges ( )

Collect all unpaired halfedges.

Returns
the unpaired halfedges
final HE_Vertex wblut.hemesh.HE_MeshStructure.getVertexByIndex ( final int  i)
Parameters
i
Returns
Deprecated:
Use getVertexWithIndex(int) instead
final HE_Vertex wblut.hemesh.HE_MeshStructure.getVertexByKey ( final long  key)

Get vertex.

Parameters
keyvertex key
Returns
vertex
Deprecated:
Use getVertexWithKey(long) instead
final HE_Vertex wblut.hemesh.HE_MeshStructure.getVertexWithIndex ( final int  i)
Parameters
i
Returns
final HE_Vertex wblut.hemesh.HE_MeshStructure.getVertexWithKey ( final long  key)

Get vertex.

Parameters
keyvertex key
Returns
vertex
final List<HE_Vertex> wblut.hemesh.HE_MeshStructure.getVertices ( )
Returns
final HE_Vertex [] wblut.hemesh.HE_MeshStructure.getVerticesAsArray ( )

Vertices as array.

Returns
all vertices as HE_Vertex[]
final List<HE_Vertex> wblut.hemesh.HE_MeshStructure.getVerticesAsList ( )

Vertices as arrayList.

Returns
all vertices as FastTable<HE_Vertex>
HE_HalfedgeIterator wblut.hemesh.HE_MeshStructure.heItr ( )

Hslfedge iterator.

Returns
halfedge iterator
final double [] wblut.hemesh.HE_MeshStructure.limits ( )
Returns
final void wblut.hemesh.HE_MeshStructure.remove ( final HE_Face  f)

Removes face.

Parameters
fface to remove
final void wblut.hemesh.HE_MeshStructure.remove ( final HE_Halfedge  he)

Removes halfedge.

Parameters
hehalfedge to remove
final void wblut.hemesh.HE_MeshStructure.remove ( final HE_Vertex  v)

Removes vertex.

Parameters
vvertex to remove
final void wblut.hemesh.HE_MeshStructure.removeFace ( final int  i)
Parameters
i
final void wblut.hemesh.HE_MeshStructure.removeFaces ( final HE_Face[]  faces)

Removes faces.

Parameters
facesfaces to remove as HE_Face[]
final void wblut.hemesh.HE_MeshStructure.removeFaces ( final Collection< HE_Face faces)

Removes faces.

Parameters
facesfaces to remove as List<HE_Face>
final void wblut.hemesh.HE_MeshStructure.removeHalfedges ( final HE_Halfedge[]  halfedges)

Removes halfedges.

Parameters
halfedgeshalfedges to remove as HE_Halfedge[]
final void wblut.hemesh.HE_MeshStructure.removeHalfedges ( final Collection< HE_Halfedge halfedges)

Removes halfedges.

Parameters
halfedgeshalfedges to remove as FastTable<HE_Halfedge>
final void wblut.hemesh.HE_MeshStructure.removeVertex ( final int  i)
Parameters
i
final void wblut.hemesh.HE_MeshStructure.removeVertices ( final HE_Vertex[]  vertices)

Removes vertices.

Parameters
verticesvertices to remove as HE_Vertex[]
final void wblut.hemesh.HE_MeshStructure.removeVertices ( final Collection< HE_Vertex vertices)

Removes vertices.

Parameters
verticesvertices to remove as FastTable<HE_Vertex>
final void wblut.hemesh.HE_MeshStructure.replaceFaces ( final HE_Face[]  faces)
protected

Replace faces.

Parameters
facesfaces to replace with as HE_Face[]
final void wblut.hemesh.HE_MeshStructure.replaceFaces ( final HE_Mesh  mesh)
protected
Parameters
mesh
final void wblut.hemesh.HE_MeshStructure.replaceFaces ( final List< HE_Face faces)
protected

Replace faces.

Parameters
facesfaces to replace with as List<HE_Face>
final void wblut.hemesh.HE_MeshStructure.replaceHalfedges ( final HE_Mesh  mesh)
protected
Parameters
mesh
final void wblut.hemesh.HE_MeshStructure.replaceHalfedges ( final HE_Halfedge[]  halfedges)
protected

Replace halfedges.

Parameters
halfedgeshalfedges to replace with as HE_Halfedge[]
final void wblut.hemesh.HE_MeshStructure.replaceHalfedges ( final List< HE_Halfedge halfedges)
protected

Replace halfedges.

Parameters
halfedgeshalfedges to replace with as List<HE_Halfedge>
final void wblut.hemesh.HE_MeshStructure.replaceVertices ( final HE_Mesh  mesh)
protected
Parameters
mesh
final void wblut.hemesh.HE_MeshStructure.replaceVertices ( final HE_Vertex[]  vertices)
protected

Replace vertices.

Parameters
verticesvertices to replace with as HE_Vertex[]
final void wblut.hemesh.HE_MeshStructure.replaceVertices ( final List< HE_Vertex vertices)
protected

Replace vertices.

Parameters
verticesvertices to replace with as List<HE_Vertex>
HE_Halfedge wblut.hemesh.HE_MeshStructure.searchHalfedgeFromTo ( final HE_Vertex  v0,
final HE_Vertex  v1 
)
Parameters
v0
v1
Returns
void wblut.hemesh.HE_MeshStructure.setFace ( final HE_Halfedge  he,
final HE_Face  f 
)
Parameters
he
f
void wblut.hemesh.HE_MeshStructure.setHalfedge ( final HE_Face  f,
final HE_Halfedge  he 
)
Parameters
f
he
void wblut.hemesh.HE_MeshStructure.setHalfedge ( final HE_Vertex  v,
final HE_Halfedge  he 
)
Parameters
v
he
void wblut.hemesh.HE_MeshStructure.setNext ( final HE_Halfedge  he,
final HE_Halfedge  hen 
)
Parameters
he
hen
void wblut.hemesh.HE_MeshStructure.setPair ( final HE_Halfedge  he1,
final HE_Halfedge  he2 
)
Parameters
he1
he2
void wblut.hemesh.HE_MeshStructure.setVertex ( final HE_Halfedge  he,
final HE_Vertex  v 
)
Parameters
he
v
HE_VertexIterator wblut.hemesh.HE_MeshStructure.vItr ( )

Vertex iterator.

Returns
vertex iterator

Member Data Documentation

HE_RAS<HE_Halfedge> wblut.hemesh.HE_MeshStructure.edges
protected
HE_RAS<HE_Face> wblut.hemesh.HE_MeshStructure.faces
protected
HE_RAS<HE_Halfedge> wblut.hemesh.HE_MeshStructure.halfedges
protected
HE_RAS<HE_Halfedge> wblut.hemesh.HE_MeshStructure.unpairedHalfedges
protected
HE_RAS<HE_Vertex> wblut.hemesh.HE_MeshStructure.vertices
protected

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