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

Describes the data structure necessary for the
mesh algorithms in two dimensions plane or on
surface by meshing in UV space.
More...

#include <BRepMesh_DataStructureOfDelaun.hxx>

Inheritance diagram for BRepMesh_DataStructureOfDelaun:
Inheritance graph
[legend]

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.
More...
 
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.
More...
 
const BRepMesh_VertexGetNode (const Standard_Integer Index)
 Get the value of node <Index>.
More...
 
const BRepMesh_Vertexoperator() (const Standard_Integer Index)
 
const BRepMesh_ListOfIntegerGetNodeList (const Standard_Integer Index)
 Get the list of node <Index>.
More...
 
void ForceRemoveNode (const Standard_Integer Index)
 Removes the node of index <index> from the mesh.
More...
 
void ForceRemoveLink (const Standard_Integer Index)
 Removes the link of index <index> from the mesh.
More...
 
void ReplaceNodes (const BRepMesh_VertexTool &NewNodes)
 
 Removes the all nodes and sets new map of <br>

nodes from the mesh.
For internal use only.
More...

 
void RemoveNode (const Standard_Integer Index)
 Removes the node of index <index> from the mesh.
More...
 
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.
More...
 
Standard_Integer NbNodes () const
 Gives the number of nodes in this mesh.
More...
 
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.
More...
 
const BRepMesh_EdgeGetLink (const Standard_Integer Index)
 Get the value of Link <Index>.
More...
 
void RemoveLink (const Standard_Integer Index)
 Removes the Link of index <Index> from the
mesh.
More...
 
Standard_Boolean SubstituteLink (const Standard_Integer Index, const BRepMesh_Edge &newLink)
 Substitutes the Link of index <Index> by
<newLink> clear the connectivity.
More...
 
Standard_Integer NbLinks () const
 Gives the number of elements in this mesh.
More...
 
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.
More...
 
const BRepMesh_TriangleGetElement (const Standard_Integer Index)
 Get the value of Element <Index>.
More...
 
void RemoveElement (const Standard_Integer Index)
 Removes the element of index <Index> in the mesh.
More...
 
Standard_Boolean SubstituteElement (const Standard_Integer Index, const BRepMesh_Triangle &newElement)
 Substitutes the element of index <Index> by
<newElement>. The links connectivity is updated.
More...
 
Standard_Integer NbElements () const
 Gives the number of elements in this mesh.
More...
 
void ClearDomain ()
 Removes all elements
More...
 
Standard_Integer IndexOf (const BRepMesh_Vertex &aNode)
 Finds the index of the node. Returns 0 if the
node is not in the mesh.
More...
 
Standard_Integer IndexOf (const BRepMesh_Edge &aLink) const
 Finds the index of the Link. Returns 0 if the
Link is not in the mesh.
More...
 
Standard_Integer IndexOf (const BRepMesh_Triangle &anElement) const
 Finds the index of the Element. Returns 0 if
the Element is not in the mesh.
More...
 
const BRepMesh_ListOfIntegerLinkNeighboursOf (const Standard_Integer theNode) const
 Gives the list of Link's indices handling the
node <theNode>.
More...
 
const BRepMesh_PairOfIndexElemConnectedTo (const Standard_Integer theLink) const
 Gives the element's indices conected
to <theLink>.
More...
 
const BRepMesh_MapOfIntegerElemOfDomain () const
 Gives the list of element's indices
More...
 
const BRepMesh_MapOfIntegerLinkOfDomain () const
 Gives the list of link's indices
More...
 
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.
More...
 
void Statistics (Standard_OStream &flot) const
 Give informations on map.
More...
 
const BRepMesh_BaseAllocatorAllocator () const
 
BRepMesh_VertexToolData ()
 Give the data structure for cell size and
tolerance initialization.
More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

Describes the data structure necessary for the
mesh algorithms in two dimensions plane or on
surface by meshing in UV space.

Constructor & Destructor Documentation

BRepMesh_DataStructureOfDelaun::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.

Member Function Documentation

Standard_Integer BRepMesh_DataStructureOfDelaun::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.

Standard_Integer BRepMesh_DataStructureOfDelaun::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.

Standard_Integer BRepMesh_DataStructureOfDelaun::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_BaseAllocator& BRepMesh_DataStructureOfDelaun::Allocator ( ) const
void BRepMesh_DataStructureOfDelaun::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 BRepMesh_DataStructureOfDelaun::ClearDomain ( )

Removes all elements

BRepMesh_VertexTool& BRepMesh_DataStructureOfDelaun::Data ( )

Give the data structure for cell size and
tolerance initialization.

const BRepMesh_PairOfIndex& BRepMesh_DataStructureOfDelaun::ElemConnectedTo ( const Standard_Integer  theLink) const

Gives the element's indices conected
to <theLink>.

const BRepMesh_MapOfInteger& BRepMesh_DataStructureOfDelaun::ElemOfDomain ( ) const

Gives the list of element's indices

void BRepMesh_DataStructureOfDelaun::ForceRemoveLink ( const Standard_Integer  Index)

Removes the link of index <index> from the mesh.

void BRepMesh_DataStructureOfDelaun::ForceRemoveNode ( const Standard_Integer  Index)

Removes the node of index <index> from the mesh.

const BRepMesh_Triangle& BRepMesh_DataStructureOfDelaun::GetElement ( const Standard_Integer  Index)

Get the value of Element <Index>.

const BRepMesh_Edge& BRepMesh_DataStructureOfDelaun::GetLink ( const Standard_Integer  Index)

Get the value of Link <Index>.

const BRepMesh_Vertex& BRepMesh_DataStructureOfDelaun::GetNode ( const Standard_Integer  Index)

Get the value of node <Index>.

const BRepMesh_ListOfInteger& BRepMesh_DataStructureOfDelaun::GetNodeList ( const Standard_Integer  Index)

Get the list of node <Index>.

Standard_Integer BRepMesh_DataStructureOfDelaun::IndexOf ( const BRepMesh_Vertex aNode)

Finds the index of the node. Returns 0 if the
node is not in the mesh.

Standard_Integer BRepMesh_DataStructureOfDelaun::IndexOf ( const BRepMesh_Edge aLink) const

Finds the index of the Link. Returns 0 if the
Link is not in the mesh.

Standard_Integer BRepMesh_DataStructureOfDelaun::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& BRepMesh_DataStructureOfDelaun::LinkNeighboursOf ( const Standard_Integer  theNode) const

Gives the list of Link's indices handling the
node <theNode>.

const BRepMesh_MapOfInteger& BRepMesh_DataStructureOfDelaun::LinkOfDomain ( ) const

Gives the list of link's indices

Standard_Boolean BRepMesh_DataStructureOfDelaun::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 BRepMesh_DataStructureOfDelaun::NbElements ( ) const

Gives the number of elements in this mesh.

Standard_Integer BRepMesh_DataStructureOfDelaun::NbLinks ( ) const

Gives the number of elements in this mesh.

Standard_Integer BRepMesh_DataStructureOfDelaun::NbNodes ( ) const

Gives the number of nodes in this mesh.

const BRepMesh_Vertex& BRepMesh_DataStructureOfDelaun::operator() ( const Standard_Integer  Index)
inline
void BRepMesh_DataStructureOfDelaun::RemoveElement ( const Standard_Integer  Index)

Removes the element of index <Index> in the mesh.

void BRepMesh_DataStructureOfDelaun::RemoveLink ( const Standard_Integer  Index)

Removes the Link of index <Index> from the
mesh.

void BRepMesh_DataStructureOfDelaun::RemoveNode ( const Standard_Integer  Index)

Removes the node of index <index> from the mesh.

void BRepMesh_DataStructureOfDelaun::ReplaceNodes ( const BRepMesh_VertexTool NewNodes)

 Removes the all nodes and sets new map of <br>

nodes from the mesh.
For internal use only.

void BRepMesh_DataStructureOfDelaun::Statistics ( Standard_OStream flot) const

Give informations on map.

Standard_Boolean BRepMesh_DataStructureOfDelaun::SubstituteElement ( const Standard_Integer  Index,
const BRepMesh_Triangle newElement 
)

Substitutes the element of index <Index> by
<newElement>. The links connectivity is updated.

Standard_Boolean BRepMesh_DataStructureOfDelaun::SubstituteLink ( const Standard_Integer  Index,
const BRepMesh_Edge newLink 
)

Substitutes the Link of index <Index> by
<newLink> clear the connectivity.


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