File indexing completed on 2025-01-18 10:05:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRepTool_TOOL_HeaderFile
0018 #define _TopOpeBRepTool_TOOL_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <TopTools_Array1OfShape.hxx>
0026 #include <TopAbs_State.hxx>
0027 #include <TopTools_ListOfShape.hxx>
0028 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0029 class TopoDS_Shape;
0030 class TopoDS_Edge;
0031 class TopoDS_Vertex;
0032 class TopoDS_Face;
0033 class gp_Pnt2d;
0034 class TopOpeBRepTool_C2DF;
0035 class gp_Vec;
0036 class gp_Dir2d;
0037 class BRepAdaptor_Curve;
0038 class gp_Vec2d;
0039 class gp_Dir;
0040 class Geom2d_Curve;
0041 class gp_Pnt;
0042
0043
0044
0045 class TopOpeBRepTool_TOOL
0046 {
0047 public:
0048
0049 DEFINE_STANDARD_ALLOC
0050
0051
0052 Standard_EXPORT static Standard_Integer OriinSor (const TopoDS_Shape& sub, const TopoDS_Shape& S, const Standard_Boolean checkclo = Standard_False);
0053
0054 Standard_EXPORT static Standard_Integer OriinSorclosed (const TopoDS_Shape& sub, const TopoDS_Shape& S);
0055
0056 Standard_EXPORT static Standard_Boolean ClosedE (const TopoDS_Edge& E, TopoDS_Vertex& vclo);
0057
0058 Standard_EXPORT static Standard_Boolean ClosedS (const TopoDS_Face& F);
0059
0060 Standard_EXPORT static Standard_Boolean IsClosingE (const TopoDS_Edge& E, const TopoDS_Face& F);
0061
0062 Standard_EXPORT static Standard_Boolean IsClosingE (const TopoDS_Edge& E, const TopoDS_Shape& W, const TopoDS_Face& F);
0063
0064 Standard_EXPORT static void Vertices (const TopoDS_Edge& E, TopTools_Array1OfShape& Vces);
0065
0066 Standard_EXPORT static TopoDS_Vertex Vertex (const Standard_Integer Iv, const TopoDS_Edge& E);
0067
0068 Standard_EXPORT static Standard_Real ParE (const Standard_Integer Iv, const TopoDS_Edge& E);
0069
0070 Standard_EXPORT static Standard_Integer OnBoundary (const Standard_Real par, const TopoDS_Edge& E);
0071
0072 Standard_EXPORT static gp_Pnt2d UVF (const Standard_Real par, const TopOpeBRepTool_C2DF& C2DF);
0073
0074 Standard_EXPORT static Standard_Boolean ParISO (const gp_Pnt2d& p2d, const TopoDS_Edge& e, const TopoDS_Face& f, Standard_Real& pare);
0075
0076 Standard_EXPORT static Standard_Boolean ParE2d (const gp_Pnt2d& p2d, const TopoDS_Edge& e, const TopoDS_Face& f, Standard_Real& par, Standard_Real& dist);
0077
0078 Standard_EXPORT static Standard_Boolean Getduv (const TopoDS_Face& f, const gp_Pnt2d& uv, const gp_Vec& dir, const Standard_Real factor, gp_Dir2d& duv);
0079
0080 Standard_EXPORT static Standard_Boolean uvApp (const TopoDS_Face& f, const TopoDS_Edge& e, const Standard_Real par, const Standard_Real eps, gp_Pnt2d& uvapp);
0081
0082 Standard_EXPORT static Standard_Real TolUV (const TopoDS_Face& F, const Standard_Real tol3d);
0083
0084 Standard_EXPORT static Standard_Real TolP (const TopoDS_Edge& E, const TopoDS_Face& F);
0085
0086 Standard_EXPORT static Standard_Real minDUV (const TopoDS_Face& F);
0087
0088 Standard_EXPORT static Standard_Boolean outUVbounds (const gp_Pnt2d& uv, const TopoDS_Face& F);
0089
0090 Standard_EXPORT static void stuvF (const gp_Pnt2d& uv, const TopoDS_Face& F, Standard_Integer& onU, Standard_Integer& onV);
0091
0092 Standard_EXPORT static Standard_Boolean TggeomE (const Standard_Real par, const BRepAdaptor_Curve& BC, gp_Vec& Tg);
0093
0094 Standard_EXPORT static Standard_Boolean TggeomE (const Standard_Real par, const TopoDS_Edge& E, gp_Vec& Tg);
0095
0096 Standard_EXPORT static Standard_Boolean TgINSIDE (const TopoDS_Vertex& v, const TopoDS_Edge& E, gp_Vec& Tg, Standard_Integer& OvinE);
0097
0098 Standard_EXPORT static gp_Vec2d Tg2d (const Standard_Integer iv, const TopoDS_Edge& E, const TopOpeBRepTool_C2DF& C2DF);
0099
0100 Standard_EXPORT static gp_Vec2d Tg2dApp (const Standard_Integer iv, const TopoDS_Edge& E, const TopOpeBRepTool_C2DF& C2DF, const Standard_Real factor);
0101
0102 Standard_EXPORT static gp_Vec2d tryTg2dApp (const Standard_Integer iv, const TopoDS_Edge& E, const TopOpeBRepTool_C2DF& C2DF, const Standard_Real factor);
0103
0104 Standard_EXPORT static Standard_Boolean XX (const gp_Pnt2d& uv, const TopoDS_Face& f, const Standard_Real par, const TopoDS_Edge& e, gp_Dir& xx);
0105
0106 Standard_EXPORT static Standard_Boolean Nt (const gp_Pnt2d& uv, const TopoDS_Face& f, gp_Dir& normt);
0107
0108 Standard_EXPORT static Standard_Boolean NggeomF (const gp_Pnt2d& uv, const TopoDS_Face& F, gp_Vec& ng);
0109
0110 Standard_EXPORT static Standard_Boolean NgApp (const Standard_Real par, const TopoDS_Edge& E, const TopoDS_Face& F, const Standard_Real tola, gp_Dir& ngApp);
0111
0112 Standard_EXPORT static Standard_Boolean tryNgApp (const Standard_Real par, const TopoDS_Edge& E, const TopoDS_Face& F, const Standard_Real tola, gp_Dir& ng);
0113
0114 Standard_EXPORT static Standard_Integer tryOriEinF (const Standard_Real par, const TopoDS_Edge& E, const TopoDS_Face& F);
0115
0116 Standard_EXPORT static Standard_Boolean IsQuad (const TopoDS_Edge& E);
0117
0118 Standard_EXPORT static Standard_Boolean IsQuad (const TopoDS_Face& F);
0119
0120 Standard_EXPORT static Standard_Boolean CurvE (const TopoDS_Edge& E, const Standard_Real par, const gp_Dir& tg0, Standard_Real& Curv);
0121
0122 Standard_EXPORT static Standard_Boolean CurvF (const TopoDS_Face& F, const gp_Pnt2d& uv, const gp_Dir& tg0, Standard_Real& Curv, Standard_Boolean& direct);
0123
0124 Standard_EXPORT static Standard_Boolean UVISO (const Handle(Geom2d_Curve)& PC, Standard_Boolean& isou, Standard_Boolean& isov, gp_Dir2d& d2d, gp_Pnt2d& o2d);
0125
0126 Standard_EXPORT static Standard_Boolean UVISO (const TopOpeBRepTool_C2DF& C2DF, Standard_Boolean& isou, Standard_Boolean& isov, gp_Dir2d& d2d, gp_Pnt2d& o2d);
0127
0128 Standard_EXPORT static Standard_Boolean UVISO (const TopoDS_Edge& E, const TopoDS_Face& F, Standard_Boolean& isou, Standard_Boolean& isov, gp_Dir2d& d2d, gp_Pnt2d& o2d);
0129
0130 Standard_EXPORT static Standard_Boolean IsonCLO (const Handle(Geom2d_Curve)& PC, const Standard_Boolean onU, const Standard_Real xfirst, const Standard_Real xperiod, const Standard_Real xtol);
0131
0132 Standard_EXPORT static Standard_Boolean IsonCLO (const TopOpeBRepTool_C2DF& C2DF, const Standard_Boolean onU, const Standard_Real xfirst, const Standard_Real xperiod, const Standard_Real xtol);
0133
0134 Standard_EXPORT static void TrslUV (const gp_Vec2d& t2d, TopOpeBRepTool_C2DF& C2DF);
0135
0136 Standard_EXPORT static Standard_Boolean TrslUVModifE (const gp_Vec2d& t2d, const TopoDS_Face& F, TopoDS_Edge& E);
0137
0138 Standard_EXPORT static Standard_Real Matter (const gp_Vec& d1, const gp_Vec& d2, const gp_Vec& ref);
0139
0140 Standard_EXPORT static Standard_Real Matter (const gp_Vec2d& d1, const gp_Vec2d& d2);
0141
0142 Standard_EXPORT static Standard_Boolean Matter (const gp_Dir& xx1, const gp_Dir& nt1, const gp_Dir& xx2, const gp_Dir& nt2, const Standard_Real tola, Standard_Real& Ang);
0143
0144 Standard_EXPORT static Standard_Boolean Matter (const TopoDS_Face& f1, const TopoDS_Face& f2, const TopoDS_Edge& e, const Standard_Real pare, const Standard_Real tola, Standard_Real& Ang);
0145
0146 Standard_EXPORT static Standard_Boolean MatterKPtg (const TopoDS_Face& f1, const TopoDS_Face& f2, const TopoDS_Edge& e, Standard_Real& Ang);
0147
0148 Standard_EXPORT static Standard_Boolean Getstp3dF (const gp_Pnt& p, const TopoDS_Face& f, gp_Pnt2d& uv, TopAbs_State& st);
0149
0150 Standard_EXPORT static Standard_Boolean SplitE (const TopoDS_Edge& Eanc, TopTools_ListOfShape& Splits);
0151
0152 Standard_EXPORT static void MkShell (const TopTools_ListOfShape& lF, TopoDS_Shape& She);
0153
0154 Standard_EXPORT static Standard_Boolean Remove (TopTools_ListOfShape& loS, const TopoDS_Shape& toremove);
0155
0156 Standard_EXPORT static Standard_Boolean WireToFace (const TopoDS_Face& Fref, const TopTools_DataMapOfShapeListOfShape& mapWlow, TopTools_ListOfShape& lFs);
0157
0158 Standard_EXPORT static Standard_Boolean EdgeONFace (const Standard_Real par, const TopoDS_Edge& ed, const gp_Pnt2d& uv, const TopoDS_Face& fa, Standard_Boolean& isonfa);
0159
0160
0161
0162
0163 protected:
0164
0165
0166
0167
0168
0169 private:
0170
0171
0172
0173
0174
0175 };
0176
0177
0178
0179
0180
0181
0182
0183 #endif