File indexing completed on 2026-09-20 09:17:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BRepLib_FuseEdges_HeaderFile
0017 #define _BRepLib_FuseEdges_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022 #include <TopoDS_Shape.hxx>
0023 #include <NCollection_List.hxx>
0024 #include <TopTools_ShapeMapHasher.hxx>
0025 #include <NCollection_IndexedDataMap.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <NCollection_DataMap.hxx>
0028 #include <NCollection_IndexedMap.hxx>
0029 #include <NCollection_Map.hxx>
0030 class TopoDS_Vertex;
0031 class TopoDS_Edge;
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 class BRepLib_FuseEdges
0043 {
0044 public:
0045 DEFINE_STANDARD_ALLOC
0046
0047
0048
0049 Standard_EXPORT BRepLib_FuseEdges(const TopoDS_Shape& theShape, const bool PerformNow = false);
0050
0051
0052 Standard_EXPORT void AvoidEdges(
0053 const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher>& theMapEdg);
0054
0055
0056
0057 Standard_EXPORT void SetConcatBSpl(const bool theConcatBSpl = true);
0058
0059
0060
0061
0062 Standard_EXPORT void Edges(
0063 NCollection_DataMap<int, NCollection_List<TopoDS_Shape>>& theMapLstEdg);
0064
0065
0066
0067
0068
0069
0070 Standard_EXPORT void ResultEdges(NCollection_DataMap<int, TopoDS_Shape>& theMapEdg);
0071
0072
0073 Standard_EXPORT void Faces(
0074 NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher>& theMapFac);
0075
0076
0077
0078 Standard_EXPORT TopoDS_Shape& Shape();
0079
0080
0081 Standard_EXPORT int NbVertices();
0082
0083
0084
0085 Standard_EXPORT void Perform();
0086
0087 private:
0088
0089 Standard_EXPORT void BuildListEdges();
0090
0091
0092
0093 Standard_EXPORT void BuildListResultEdges();
0094
0095 Standard_EXPORT void BuildListConnexEdge(
0096 const TopoDS_Shape& theEdge,
0097 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>& theMapUniq,
0098 NCollection_List<TopoDS_Shape>& theLstEdg);
0099
0100 Standard_EXPORT bool NextConnexEdge(const TopoDS_Vertex& theVertex,
0101 const TopoDS_Shape& theEdge,
0102 TopoDS_Shape& theEdgeConnex) const;
0103
0104 Standard_EXPORT bool SameSupport(const TopoDS_Edge& E1, const TopoDS_Edge& E2) const;
0105
0106 Standard_EXPORT bool UpdatePCurve(const TopoDS_Edge& theOldEdge,
0107 TopoDS_Edge& theNewEdge,
0108 const NCollection_List<TopoDS_Shape>& theLstEdg) const;
0109
0110 TopoDS_Shape myShape;
0111 bool myShapeDone;
0112 bool myEdgesDone;
0113 bool myResultEdgesDone;
0114 NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0115 myMapVerLstEdg;
0116 NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0117 myMapEdgLstFac;
0118 NCollection_DataMap<int, NCollection_List<TopoDS_Shape>> myMapLstEdg;
0119 NCollection_DataMap<int, TopoDS_Shape> myMapEdg;
0120 NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> myMapFaces;
0121 int myNbConnexEdge;
0122 NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> myAvoidEdg;
0123 bool myConcatBSpl;
0124 };
0125
0126 #endif