File indexing completed on 2025-01-18 10:03:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepAlgo_NormalProjection_HeaderFile
0018 #define _BRepAlgo_NormalProjection_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <GeomAbs_Shape.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopTools_DataMapOfShapeShape.hxx>
0027 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0028 #include <TopTools_ListOfShape.hxx>
0029 class TopoDS_Edge;
0030 class Adaptor3d_Curve;
0031
0032
0033
0034
0035 class BRepAlgo_NormalProjection
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT BRepAlgo_NormalProjection();
0043
0044 Standard_EXPORT BRepAlgo_NormalProjection(const TopoDS_Shape& S);
0045
0046 Standard_EXPORT void Init (const TopoDS_Shape& S);
0047
0048
0049 Standard_EXPORT void Add (const TopoDS_Shape& ToProj);
0050
0051
0052
0053
0054
0055
0056
0057
0058 Standard_EXPORT void SetParams (const Standard_Real Tol3D, const Standard_Real Tol2D, const GeomAbs_Shape InternalContinuity, const Standard_Integer MaxDegree, const Standard_Integer MaxSeg);
0059
0060
0061
0062 Standard_EXPORT void SetDefaultParams();
0063
0064
0065
0066
0067
0068 Standard_EXPORT void SetMaxDistance (const Standard_Real MaxDist);
0069
0070
0071
0072 Standard_EXPORT void Compute3d (const Standard_Boolean With3d = Standard_True);
0073
0074
0075 Standard_EXPORT void SetLimit (const Standard_Boolean FaceBoundaries = Standard_True);
0076
0077
0078 Standard_EXPORT void Build();
0079
0080 Standard_EXPORT Standard_Boolean IsDone() const;
0081
0082
0083 Standard_EXPORT const TopoDS_Shape& Projection() const;
0084
0085
0086 Standard_EXPORT const TopoDS_Shape& Ancestor (const TopoDS_Edge& E) const;
0087
0088
0089 Standard_EXPORT const TopoDS_Shape& Couple (const TopoDS_Edge& E) const;
0090
0091
0092
0093 Standard_EXPORT const TopTools_ListOfShape& Generated (const TopoDS_Shape& S);
0094
0095 Standard_EXPORT Standard_Boolean IsElementary (const Adaptor3d_Curve& C) const;
0096
0097
0098
0099 Standard_EXPORT Standard_Boolean BuildWire (TopTools_ListOfShape& Liste) const;
0100
0101
0102
0103
0104 protected:
0105
0106
0107
0108
0109
0110 private:
0111
0112
0113
0114 TopoDS_Shape myShape;
0115 Standard_Boolean myIsDone;
0116 Standard_Real myTol3d;
0117 Standard_Real myTol2d;
0118 Standard_Real myMaxDist;
0119 Standard_Boolean myWith3d;
0120 GeomAbs_Shape myContinuity;
0121 Standard_Integer myMaxDegree;
0122 Standard_Integer myMaxSeg;
0123 Standard_Boolean myFaceBounds;
0124 TopoDS_Shape myToProj;
0125 TopTools_DataMapOfShapeShape myAncestorMap;
0126 TopTools_DataMapOfShapeShape myCorresp;
0127 TopTools_DataMapOfShapeListOfShape myDescendants;
0128 TopoDS_Shape myRes;
0129
0130
0131 };
0132
0133
0134
0135
0136
0137
0138
0139 #endif