File indexing completed on 2025-01-18 10:03:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRBRep_EdgeInterferenceTool_HeaderFile
0018 #define _HLRBRep_EdgeInterferenceTool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <HLRAlgo_Intersection.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopAbs_Orientation.hxx>
0027 class HLRBRep_Data;
0028 class gp_Dir;
0029 class HLRAlgo_Interference;
0030
0031
0032
0033
0034 class HLRBRep_EdgeInterferenceTool
0035 {
0036 public:
0037
0038 DEFINE_STANDARD_ALLOC
0039
0040
0041 Standard_EXPORT HLRBRep_EdgeInterferenceTool(const Handle(HLRBRep_Data)& DS);
0042
0043 Standard_EXPORT void LoadEdge();
0044
0045 void InitVertices();
0046
0047 Standard_Boolean MoreVertices() const;
0048
0049 void NextVertex();
0050
0051 const HLRAlgo_Intersection& CurrentVertex() const;
0052
0053 TopAbs_Orientation CurrentOrientation() const;
0054
0055 Standard_Real CurrentParameter() const;
0056
0057 Standard_Boolean IsPeriodic() const;
0058
0059
0060
0061
0062 Standard_EXPORT void EdgeGeometry (const Standard_Real Param, gp_Dir& Tgt, gp_Dir& Nrm, Standard_Real& Curv) const;
0063
0064 Standard_Real ParameterOfInterference (const HLRAlgo_Interference& I) const;
0065
0066
0067
0068 Standard_EXPORT Standard_Boolean SameInterferences (const HLRAlgo_Interference& I1, const HLRAlgo_Interference& I2) const;
0069
0070
0071
0072 Standard_EXPORT Standard_Boolean SameVertexAndInterference (const HLRAlgo_Interference& I) const;
0073
0074
0075
0076
0077
0078 Standard_EXPORT void InterferenceBoundaryGeometry (const HLRAlgo_Interference& I, gp_Dir& Tang, gp_Dir& Norm, Standard_Real& Curv) const;
0079
0080
0081
0082
0083 protected:
0084
0085
0086
0087
0088
0089 private:
0090
0091
0092
0093 Handle(HLRBRep_Data) myDS;
0094 HLRAlgo_Intersection inter[2];
0095 Standard_Integer cur;
0096
0097
0098 };
0099
0100
0101 #include <HLRBRep_EdgeInterferenceTool.lxx>
0102
0103
0104
0105
0106
0107 #endif