File indexing completed on 2025-01-18 10:03:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepIntCurveSurface_Inter_HeaderFile
0018 #define _BRepIntCurveSurface_Inter_HeaderFile
0019
0020 #include <GeomAdaptor_Curve.hxx>
0021 #include <IntCurveSurface_HInter.hxx>
0022 #include <TopTools_SequenceOfShape.hxx>
0023 #include <Bnd_HArray1OfBox.hxx>
0024 #include <IntCurveSurface_TransitionOnCurve.hxx>
0025
0026 class BRepTopAdaptor_TopolTool;
0027 class TopoDS_Shape;
0028 class GeomAdaptor_Curve;
0029 class gp_Lin;
0030 class IntCurveSurface_IntersectionPoint;
0031 class gp_Pnt;
0032 class TopoDS_Face;
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055 class BRepIntCurveSurface_Inter
0056 {
0057 public:
0058
0059 DEFINE_STANDARD_ALLOC
0060
0061
0062
0063 Standard_EXPORT BRepIntCurveSurface_Inter();
0064
0065
0066
0067 Standard_EXPORT void Init (const TopoDS_Shape& theShape, const GeomAdaptor_Curve& theCurve, const Standard_Real theTol);
0068
0069
0070
0071 Standard_EXPORT void Init (const TopoDS_Shape& theShape, const gp_Lin& theLine, const Standard_Real theTol);
0072
0073
0074
0075 Standard_EXPORT void Load (const TopoDS_Shape& theShape, const Standard_Real theTol);
0076
0077
0078 Standard_EXPORT void Init (const GeomAdaptor_Curve& theCurve);
0079
0080
0081 Standard_EXPORT Standard_Boolean More() const;
0082
0083
0084 Standard_EXPORT void Next();
0085
0086
0087 Standard_EXPORT IntCurveSurface_IntersectionPoint Point() const;
0088
0089
0090 Standard_EXPORT const gp_Pnt& Pnt() const;
0091
0092
0093
0094 Standard_EXPORT Standard_Real U() const;
0095
0096
0097
0098 Standard_EXPORT Standard_Real V() const;
0099
0100
0101
0102 Standard_EXPORT Standard_Real W() const;
0103
0104
0105 Standard_EXPORT TopAbs_State State() const;
0106
0107
0108 Standard_EXPORT IntCurveSurface_TransitionOnCurve Transition() const;
0109
0110
0111 Standard_EXPORT const TopoDS_Face& Face() const;
0112
0113
0114
0115
0116 protected:
0117
0118
0119
0120 Standard_EXPORT void Find();
0121
0122
0123 Standard_EXPORT Standard_Boolean FindPoint();
0124
0125
0126 Standard_EXPORT void Clear();
0127
0128
0129
0130
0131 private:
0132
0133
0134
0135 Standard_Real myTolerance;
0136 Handle(GeomAdaptor_Curve) myCurve;
0137 IntCurveSurface_HInter myIntcs;
0138 Standard_Integer myCurrentindex;
0139 Standard_Integer myCurrentnbpoints;
0140 Handle(BRepTopAdaptor_TopolTool) myFastClass;
0141 TopAbs_State myCurrentstate;
0142 Standard_Real myCurrentU;
0143 Standard_Real myCurrentV;
0144 Bnd_Box myCurveBox;
0145 Standard_Integer myIndFace;
0146 TopTools_SequenceOfShape myFaces;
0147 Handle(Bnd_HArray1OfBox) myFaceBoxes;
0148
0149
0150 };
0151
0152
0153
0154
0155
0156
0157
0158 #endif