File indexing completed on 2025-01-18 10:03:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepProj_Projection_HeaderFile
0018 #define _BRepProj_Projection_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TopoDS_Shape.hxx>
0025 #include <TopoDS_Compound.hxx>
0026 #include <TopTools_HSequenceOfShape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopoDS_Wire.hxx>
0029 class gp_Dir;
0030 class gp_Pnt;
0031
0032
0033
0034
0035
0036
0037 class BRepProj_Projection
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044
0045 Standard_EXPORT BRepProj_Projection(const TopoDS_Shape& Wire, const TopoDS_Shape& Shape, const gp_Dir& D);
0046
0047
0048 Standard_EXPORT BRepProj_Projection(const TopoDS_Shape& Wire, const TopoDS_Shape& Shape, const gp_Pnt& P);
0049
0050
0051 Standard_Boolean IsDone() const;
0052
0053
0054 void Init();
0055
0056
0057 Standard_Boolean More() const;
0058
0059
0060 void Next();
0061
0062
0063 TopoDS_Wire Current() const;
0064
0065
0066 TopoDS_Compound Shape() const;
0067
0068
0069
0070
0071 protected:
0072
0073
0074
0075
0076
0077 private:
0078
0079
0080
0081
0082 Standard_EXPORT void BuildSection (const TopoDS_Shape& Shape, const TopoDS_Shape& Tool);
0083
0084
0085 Standard_Boolean myIsDone;
0086 TopoDS_Shape myLsh;
0087 TopoDS_Compound myShape;
0088 Handle(TopTools_HSequenceOfShape) mySection;
0089 Standard_Integer myItr;
0090
0091
0092 };
0093
0094
0095 #include <BRepProj_Projection.lxx>
0096
0097
0098
0099
0100
0101 #endif