Open CASCADE Technology
6.5.4
|
Describes the data structure necessary for the
mesh algorithms in two dimensions plane or on
surface by meshing in UV space.
#include <BRepMesh_DataStructureOfDelaun.hxx>
Public Member Functions | |
BRepMesh_DataStructureOfDelaun (const BRepMesh_BaseAllocator &theAllocator, const Standard_Integer NodeNumber=100) | |
<NodeNumber> is just an evaluation of the presumed number of nodes in this mesh. The Mesh data structure will be automatically redimensioned if necessary. | |
Standard_Integer | AddNode (const BRepMesh_Vertex &theNode) |
Adds a node to the mesh if the node is not already in the Mesh. Returns the index of the node in the structure. | |
const BRepMesh_Vertex & | GetNode (const Standard_Integer Index) |
Get the value of node <Index>. | |
const BRepMesh_Vertex & | operator() (const Standard_Integer Index) |
const BRepMesh_ListOfInteger & | GetNodeList (const Standard_Integer Index) |
Get the list of node <Index>. | |
void | ForceRemoveNode (const Standard_Integer Index) |
Removes the node of index <index> from the mesh. | |
void | ForceRemoveLink (const Standard_Integer Index) |
Removes the link of index <index> from the mesh. | |
void | ReplaceNodes (const BRepMesh_VertexTool &NewNodes) |
Removes the all nodes and sets new map of nodes from the mesh. For internal use only. | |
void | RemoveNode (const Standard_Integer Index) |
Removes the node of index <index> from the mesh. | |
Standard_Boolean | MoveNode (const Standard_Integer Index, const BRepMesh_Vertex &newNode) |
Changes the UV value of node of index <Index> by <newNode>. Returns false if <newnode> is already in the structure. | |
Standard_Integer | NbNodes () const |
Gives the number of nodes in this mesh. | |
Standard_Integer | AddLink (const BRepMesh_Edge &theLink) |
Adds a Link to the mesh if the Link is not already in the structure. Returns the index of the link in the structure. | |
const BRepMesh_Edge & | GetLink (const Standard_Integer Index) |
Get the value of Link <Index>. | |
void | RemoveLink (const Standard_Integer Index) |
Removes the Link of index <Index> from the mesh. | |
Standard_Boolean | SubstituteLink (const Standard_Integer Index, const BRepMesh_Edge &newLink) |
Substitutes the Link of index <Index> by <newLink> clear the connectivity. | |
Standard_Integer | NbLinks () const |
Gives the number of elements in this mesh. | |
Standard_Integer | AddElement (const BRepMesh_Triangle &theElement) |
Adds an element to the mesh if it is not already in the Mesh. Returns the index of the element in the structure. | |
const BRepMesh_Triangle & | GetElement (const Standard_Integer Index) |
Get the value of Element <Index>. | |
void | RemoveElement (const Standard_Integer Index) |
Removes the element of index <Index> in the mesh. | |
Standard_Boolean | SubstituteElement (const Standard_Integer Index, const BRepMesh_Triangle &newElement) |
Substitutes the element of index <Index> by <newElement>. The links connectivity is updated. | |
Standard_Integer | NbElements () const |
Gives the number of elements in this mesh. | |
void | ClearDomain () |
Removes all elements | |
Standard_Integer | IndexOf (const BRepMesh_Vertex &aNode) |
Finds the index of the node. Returns 0 if the node is not in the mesh. | |
Standard_Integer | IndexOf (const BRepMesh_Edge &aLink) const |
Finds the index of the Link. Returns 0 if the Link is not in the mesh. | |
Standard_Integer | IndexOf (const BRepMesh_Triangle &anElement) const |
Finds the index of the Element. Returns 0 if the Element is not in the mesh. | |
const BRepMesh_ListOfInteger & | LinkNeighboursOf (const Standard_Integer theNode) const |
Gives the list of Link's indices handling the node <theNode>. | |
const BRepMesh_PairOfIndex & | ElemConnectedTo (const Standard_Integer theLink) const |
Gives the element's indices conected to <theLink>. | |
const BRepMesh_MapOfInteger & | ElemOfDomain () const |
Gives the list of element's indices | |
const BRepMesh_MapOfInteger & | LinkOfDomain () const |
Gives the list of link's indices | |
void | ClearDeleted () |
This method substitute the deleted items by the last in Indexed Data Maps to have only non-deleted elements, links or nodes in the structure. | |
void | Statistics (Standard_OStream &flot) const |
Give informations on map. | |
const BRepMesh_BaseAllocator & | Allocator () const |
BRepMesh_VertexTool & | Data () |
Give the data structure for cell size and tolerance initialization. |
BRepMesh_DataStructureOfDelaun::BRepMesh_DataStructureOfDelaun | ( | const BRepMesh_BaseAllocator & | theAllocator, |
const Standard_Integer | NodeNumber = 100 |
||
) |
const BRepMesh_PairOfIndex& BRepMesh_DataStructureOfDelaun::ElemConnectedTo | ( | const Standard_Integer | theLink | ) | const |
const BRepMesh_ListOfInteger& BRepMesh_DataStructureOfDelaun::GetNodeList | ( | const Standard_Integer | Index | ) |
Standard_Integer BRepMesh_DataStructureOfDelaun::IndexOf | ( | const BRepMesh_Edge & | aLink | ) | const |
Standard_Integer BRepMesh_DataStructureOfDelaun::IndexOf | ( | const BRepMesh_Triangle & | anElement | ) | const |
const BRepMesh_ListOfInteger& BRepMesh_DataStructureOfDelaun::LinkNeighboursOf | ( | const Standard_Integer | theNode | ) | const |
Standard_Boolean BRepMesh_DataStructureOfDelaun::MoveNode | ( | const Standard_Integer | Index, |
const BRepMesh_Vertex & | newNode | ||
) |
const BRepMesh_Vertex& BRepMesh_DataStructureOfDelaun::operator() | ( | const Standard_Integer | Index | ) | [inline] |
void BRepMesh_DataStructureOfDelaun::Statistics | ( | Standard_OStream & | flot | ) | const |
Standard_Boolean BRepMesh_DataStructureOfDelaun::SubstituteElement | ( | const Standard_Integer | Index, |
const BRepMesh_Triangle & | newElement | ||
) |
Standard_Boolean BRepMesh_DataStructureOfDelaun::SubstituteLink | ( | const Standard_Integer | Index, |
const BRepMesh_Edge & | newLink | ||
) |