File indexing completed on 2026-10-23 09:20:19
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 class HLRBRep_EdgeInterferenceTool
0034 {
0035 public:
0036 DEFINE_STANDARD_ALLOC
0037
0038 Standard_EXPORT HLRBRep_EdgeInterferenceTool(const occ::handle<HLRBRep_Data>& DS);
0039
0040 Standard_EXPORT void LoadEdge();
0041
0042 void InitVertices();
0043
0044 bool MoreVertices() const;
0045
0046 void NextVertex();
0047
0048 const HLRAlgo_Intersection& CurrentVertex() const;
0049
0050 TopAbs_Orientation CurrentOrientation() const;
0051
0052 double CurrentParameter() const;
0053
0054 bool IsPeriodic() const;
0055
0056
0057
0058
0059 Standard_EXPORT void EdgeGeometry(const double Param,
0060 gp_Dir& Tgt,
0061 gp_Dir& Nrm,
0062 double& Curv) const;
0063
0064 double ParameterOfInterference(const HLRAlgo_Interference& I) const;
0065
0066
0067
0068 Standard_EXPORT bool SameInterferences(const HLRAlgo_Interference& I1,
0069 const HLRAlgo_Interference& I2) const;
0070
0071
0072
0073 Standard_EXPORT bool SameVertexAndInterference(const HLRAlgo_Interference& I) const;
0074
0075
0076
0077
0078
0079 Standard_EXPORT void InterferenceBoundaryGeometry(const HLRAlgo_Interference& I,
0080 gp_Dir& Tang,
0081 gp_Dir& Norm,
0082 double& Curv) const;
0083
0084 private:
0085 occ::handle<HLRBRep_Data> myDS;
0086 HLRAlgo_Intersection inter[2];
0087 int cur;
0088 };
0089
0090 #include <HLRBRep_EdgeInterferenceTool.lxx>
0091
0092 #endif