File indexing completed on 2025-01-18 10:03:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _BRepMesh_SelectorOfDataStructureOfDelaun_HeaderFile
0015 #define _BRepMesh_SelectorOfDataStructureOfDelaun_HeaderFile
0016
0017 #include <Standard_Transient.hxx>
0018 #include <BRepMesh_DataStructureOfDelaun.hxx>
0019 #include <BRepMesh_Triangle.hxx>
0020 #include <IMeshData_Types.hxx>
0021
0022 class BRepMesh_Vertex;
0023 class BRepMesh_Edge;
0024
0025
0026
0027 class BRepMesh_SelectorOfDataStructureOfDelaun : public Standard_Transient
0028 {
0029 public:
0030
0031
0032 Standard_EXPORT BRepMesh_SelectorOfDataStructureOfDelaun();
0033
0034
0035
0036 Standard_EXPORT BRepMesh_SelectorOfDataStructureOfDelaun(const Handle(BRepMesh_DataStructureOfDelaun)& theMesh);
0037
0038
0039 Standard_EXPORT void Initialize(const Handle(BRepMesh_DataStructureOfDelaun)& theMesh);
0040
0041
0042 Standard_EXPORT void NeighboursOf(const BRepMesh_Vertex& theNode);
0043
0044
0045 Standard_EXPORT void NeighboursOfNode(const Standard_Integer theNodeIndex);
0046
0047
0048 Standard_EXPORT void NeighboursOf(const BRepMesh_Edge& theLink);
0049
0050
0051 Standard_EXPORT void NeighboursOfLink(const Standard_Integer theLinkIndex);
0052
0053
0054 Standard_EXPORT void NeighboursOf(const BRepMesh_Triangle& theElement);
0055
0056
0057 Standard_EXPORT void NeighboursOfElement(const Standard_Integer theElementIndex);
0058
0059
0060 Standard_EXPORT void NeighboursByEdgeOf(const BRepMesh_Triangle& theElement);
0061
0062
0063 void NeighboursOf(const BRepMesh_SelectorOfDataStructureOfDelaun& )
0064 {
0065 }
0066
0067
0068 void AddNeighbours()
0069 {
0070 }
0071
0072
0073 const IMeshData::MapOfInteger& Nodes() const
0074 {
0075 return myNodes;
0076 }
0077
0078
0079 const IMeshData::MapOfInteger& Links() const
0080 {
0081 return myLinks;
0082 }
0083
0084
0085 const IMeshData::MapOfInteger& Elements() const
0086 {
0087 return myElements;
0088 }
0089
0090
0091 const IMeshData::MapOfInteger& FrontierLinks() const
0092 {
0093 return myFrontier;
0094 }
0095
0096 DEFINE_STANDARD_RTTIEXT(BRepMesh_SelectorOfDataStructureOfDelaun, Standard_Transient)
0097
0098 private:
0099
0100
0101 void elementsOfLink(const Standard_Integer theIndex);
0102
0103 private:
0104 Handle(BRepMesh_DataStructureOfDelaun) myMesh;
0105 IMeshData::MapOfInteger myNodes;
0106 IMeshData::MapOfInteger myLinks;
0107 IMeshData::MapOfInteger myElements;
0108 IMeshData::MapOfInteger myFrontier;
0109 };
0110
0111 #endif