File indexing completed on 2025-01-18 10:03:13
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 <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0024 #include <TopTools_DataMapOfIntegerListOfShape.hxx>
0025 #include <TopTools_DataMapOfIntegerShape.hxx>
0026 #include <TopTools_DataMapOfShapeShape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopTools_IndexedMapOfShape.hxx>
0029 #include <TopTools_MapOfShape.hxx>
0030 #include <TopTools_ListOfShape.hxx>
0031 class TopoDS_Vertex;
0032 class TopoDS_Edge;
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 class BRepLib_FuseEdges
0045 {
0046 public:
0047
0048 DEFINE_STANDARD_ALLOC
0049
0050
0051
0052
0053 Standard_EXPORT BRepLib_FuseEdges(const TopoDS_Shape& theShape, const Standard_Boolean PerformNow = Standard_False);
0054
0055
0056 Standard_EXPORT void AvoidEdges (const TopTools_IndexedMapOfShape& theMapEdg);
0057
0058
0059
0060 Standard_EXPORT void SetConcatBSpl (const Standard_Boolean theConcatBSpl = Standard_True);
0061
0062
0063
0064
0065 Standard_EXPORT void Edges (TopTools_DataMapOfIntegerListOfShape& theMapLstEdg);
0066
0067
0068
0069
0070
0071
0072 Standard_EXPORT void ResultEdges (TopTools_DataMapOfIntegerShape& theMapEdg);
0073
0074
0075 Standard_EXPORT void Faces (TopTools_DataMapOfShapeShape& theMapFac);
0076
0077
0078
0079 Standard_EXPORT TopoDS_Shape& Shape();
0080
0081
0082 Standard_EXPORT Standard_Integer NbVertices();
0083
0084
0085
0086 Standard_EXPORT void Perform();
0087
0088
0089
0090
0091 protected:
0092
0093
0094
0095
0096
0097 private:
0098
0099
0100 Standard_EXPORT void BuildListEdges();
0101
0102
0103
0104 Standard_EXPORT void BuildListResultEdges();
0105
0106 Standard_EXPORT void BuildListConnexEdge (const TopoDS_Shape& theEdge, TopTools_MapOfShape& theMapUniq, TopTools_ListOfShape& theLstEdg);
0107
0108 Standard_EXPORT Standard_Boolean NextConnexEdge (const TopoDS_Vertex& theVertex, const TopoDS_Shape& theEdge, TopoDS_Shape& theEdgeConnex) const;
0109
0110 Standard_EXPORT Standard_Boolean SameSupport (const TopoDS_Edge& E1, const TopoDS_Edge& E2) const;
0111
0112 Standard_EXPORT Standard_Boolean UpdatePCurve (const TopoDS_Edge& theOldEdge, TopoDS_Edge& theNewEdge, const TopTools_ListOfShape& theLstEdg) const;
0113
0114
0115 TopoDS_Shape myShape;
0116 Standard_Boolean myShapeDone;
0117 Standard_Boolean myEdgesDone;
0118 Standard_Boolean myResultEdgesDone;
0119 TopTools_IndexedDataMapOfShapeListOfShape myMapVerLstEdg;
0120 TopTools_IndexedDataMapOfShapeListOfShape myMapEdgLstFac;
0121 TopTools_DataMapOfIntegerListOfShape myMapLstEdg;
0122 TopTools_DataMapOfIntegerShape myMapEdg;
0123 TopTools_DataMapOfShapeShape myMapFaces;
0124 Standard_Integer myNbConnexEdge;
0125 TopTools_IndexedMapOfShape myAvoidEdg;
0126 Standard_Boolean myConcatBSpl;
0127
0128
0129 };
0130
0131
0132
0133
0134
0135
0136
0137 #endif