Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
BRepMesh_Delaun Class Reference

Compute the Delaunay's triangulation with the
algorithm of Watson.
More...

#include <BRepMesh_Delaun.hxx>

Public Member Functions

 BRepMesh_Delaun (BRepMesh_Array1OfVertexOfDelaun &theVertices, const Standard_Boolean isPositive=Standard_True)
 Creates the triangulation with an empty Mesh
data structure.
More...
 
 BRepMesh_Delaun (const Handle< BRepMesh_DataStructureOfDelaun > &theOldMesh, BRepMesh_Array1OfVertexOfDelaun &theVertices, const Standard_Boolean isPositive=Standard_True)
 Creates the triangulation with and existent
Mesh data structure.
More...
 
 BRepMesh_Delaun (const Handle< BRepMesh_DataStructureOfDelaun > &theOldMesh, TColStd_Array1OfInteger &theVertexIndices, const Standard_Boolean isPositive=Standard_True)
 Creates the triangulation with and existant
Mesh data structure.
More...
 
void Init (BRepMesh_Array1OfVertexOfDelaun &theVertices)
 Initializes the triangulation with an array of
vertices.
More...
 
void RemoveVertex (const BRepMesh_Vertex &theVertex)
 Removes a vertex from the triangulation.
More...
 
void AddVertices (BRepMesh_Array1OfVertexOfDelaun &theVertices)
 Adds some vertices into the triangulation.
More...
 
Standard_Boolean UseEdge (const Standard_Integer theEdge)
 Modify mesh to use the edge. Return True if done.
More...
 
const Handle
< BRepMesh_DataStructureOfDelaun > & 
Result () const
 Gives the Mesh data structure.
More...
 
Handle< BRepMesh_MapOfIntegerFrontier () const
 Gives the list of frontier edges
More...
 
Handle< BRepMesh_MapOfIntegerInternalEdges () const
 Gives the list of internal edges
More...
 
Handle< BRepMesh_MapOfIntegerFreeEdges () const
 Gives the list of free edges used only one time
More...
 
const BRepMesh_VertexGetVertex (const Standard_Integer theIndex) const
 Gives vertex with the given index
More...
 
const BRepMesh_EdgeGetEdge (const Standard_Integer theIndex) const
 Gives edge with the given index
More...
 
const BRepMesh_TriangleGetTriangle (const Standard_Integer theIndex) const
 Gives triangle with the given index
More...
 
Standard_Boolean Contains (const Standard_Integer theTriangleId, const BRepMesh_Vertex &theVertex, Standard_Integer &theEdgeOn) const
 Test is the given triangle contains the given vertex.
If <theEdgeOn> != 0 the vertex lies onto the edge index
returned through this parameter.
More...
 

Detailed Description

Compute the Delaunay's triangulation with the
algorithm of Watson.

Constructor & Destructor Documentation

BRepMesh_Delaun::BRepMesh_Delaun ( BRepMesh_Array1OfVertexOfDelaun theVertices,
const Standard_Boolean  isPositive = Standard_True 
)

Creates the triangulation with an empty Mesh
data structure.

BRepMesh_Delaun::BRepMesh_Delaun ( const Handle< BRepMesh_DataStructureOfDelaun > &  theOldMesh,
BRepMesh_Array1OfVertexOfDelaun theVertices,
const Standard_Boolean  isPositive = Standard_True 
)

Creates the triangulation with and existent
Mesh data structure.

BRepMesh_Delaun::BRepMesh_Delaun ( const Handle< BRepMesh_DataStructureOfDelaun > &  theOldMesh,
TColStd_Array1OfInteger theVertexIndices,
const Standard_Boolean  isPositive = Standard_True 
)

Creates the triangulation with and existant
Mesh data structure.

Member Function Documentation

void BRepMesh_Delaun::AddVertices ( BRepMesh_Array1OfVertexOfDelaun theVertices)

Adds some vertices into the triangulation.

Standard_Boolean BRepMesh_Delaun::Contains ( const Standard_Integer  theTriangleId,
const BRepMesh_Vertex theVertex,
Standard_Integer theEdgeOn 
) const

Test is the given triangle contains the given vertex.
If <theEdgeOn> != 0 the vertex lies onto the edge index
returned through this parameter.

Handle< BRepMesh_MapOfInteger > BRepMesh_Delaun::FreeEdges ( ) const
inline

Gives the list of free edges used only one time

Handle< BRepMesh_MapOfInteger > BRepMesh_Delaun::Frontier ( ) const
inline

Gives the list of frontier edges

const BRepMesh_Edge& BRepMesh_Delaun::GetEdge ( const Standard_Integer  theIndex) const
inline

Gives edge with the given index

const BRepMesh_Triangle& BRepMesh_Delaun::GetTriangle ( const Standard_Integer  theIndex) const
inline

Gives triangle with the given index

const BRepMesh_Vertex& BRepMesh_Delaun::GetVertex ( const Standard_Integer  theIndex) const
inline

Gives vertex with the given index

void BRepMesh_Delaun::Init ( BRepMesh_Array1OfVertexOfDelaun theVertices)

Initializes the triangulation with an array of
vertices.

Handle< BRepMesh_MapOfInteger > BRepMesh_Delaun::InternalEdges ( ) const
inline

Gives the list of internal edges

void BRepMesh_Delaun::RemoveVertex ( const BRepMesh_Vertex theVertex)

Removes a vertex from the triangulation.

const Handle< BRepMesh_DataStructureOfDelaun >& BRepMesh_Delaun::Result ( ) const
inline

Gives the Mesh data structure.

Standard_Boolean BRepMesh_Delaun::UseEdge ( const Standard_Integer  theEdge)

Modify mesh to use the edge. Return True if done.


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