File indexing completed on 2025-01-18 10:03:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRep_Tool_HeaderFile
0018 #define _BRep_Tool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <GeomAbs_Shape.hxx>
0025 #include <Geom_Surface.hxx>
0026 #include <Geom_Curve.hxx>
0027 #include <Geom2d_Curve.hxx>
0028 #include <gp_Pnt2d.hxx>
0029 #include <gp_Pnt.hxx>
0030 #include <Poly_ListOfTriangulation.hxx>
0031 #include <Poly_Polygon3D.hxx>
0032 #include <Poly_Polygon2D.hxx>
0033 #include <Poly_PolygonOnTriangulation.hxx>
0034 #include <TopAbs_ShapeEnum.hxx>
0035
0036 class TopoDS_Shape;
0037 class TopoDS_Face;
0038 class TopLoc_Location;
0039 class TopoDS_Edge;
0040 class TopoDS_Vertex;
0041
0042
0043
0044
0045 class BRep_Tool
0046 {
0047 public:
0048
0049 DEFINE_STANDARD_ALLOC
0050
0051
0052
0053
0054
0055
0056
0057 Standard_EXPORT static Standard_Boolean IsClosed (const TopoDS_Shape& S);
0058
0059
0060
0061 Standard_EXPORT static const Handle(Geom_Surface)& Surface (const TopoDS_Face& F, TopLoc_Location& L);
0062
0063
0064
0065 Standard_EXPORT static Handle(Geom_Surface) Surface (const TopoDS_Face& F);
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075 Standard_EXPORT static const Handle(Poly_Triangulation)& Triangulation (const TopoDS_Face& theFace, TopLoc_Location& theLocation,
0076 const Poly_MeshPurpose theMeshPurpose = Poly_MeshPurpose_NONE);
0077
0078
0079
0080
0081
0082 Standard_EXPORT static const Poly_ListOfTriangulation& Triangulations (const TopoDS_Face& theFace, TopLoc_Location& theLocation);
0083
0084
0085 Standard_EXPORT static Standard_Real Tolerance (const TopoDS_Face& F);
0086
0087
0088 Standard_EXPORT static Standard_Boolean NaturalRestriction (const TopoDS_Face& F);
0089
0090
0091 Standard_EXPORT static Standard_Boolean IsGeometric (const TopoDS_Face& F);
0092
0093
0094
0095 Standard_EXPORT static Standard_Boolean IsGeometric (const TopoDS_Edge& E);
0096
0097
0098
0099
0100 Standard_EXPORT static const Handle(Geom_Curve)& Curve (const TopoDS_Edge& E, TopLoc_Location& L, Standard_Real& First, Standard_Real& Last);
0101
0102
0103
0104
0105 Standard_EXPORT static Handle(Geom_Curve) Curve (const TopoDS_Edge& E, Standard_Real& First, Standard_Real& Last);
0106
0107
0108
0109 Standard_EXPORT static const Handle(Poly_Polygon3D)& Polygon3D (const TopoDS_Edge& E, TopLoc_Location& L);
0110
0111
0112
0113
0114
0115
0116
0117
0118 Standard_EXPORT static Handle(Geom2d_Curve) CurveOnSurface (const TopoDS_Edge& E,
0119 const TopoDS_Face& F,
0120 Standard_Real& First,
0121 Standard_Real& Last,
0122 Standard_Boolean* theIsStored = NULL);
0123
0124
0125
0126
0127
0128
0129
0130
0131 Standard_EXPORT static Handle(Geom2d_Curve) CurveOnSurface(const TopoDS_Edge& E,
0132 const Handle(Geom_Surface)& S,
0133 const TopLoc_Location& L,
0134 Standard_Real& First,
0135 Standard_Real& Last,
0136 Standard_Boolean* theIsStored = NULL);
0137
0138
0139
0140
0141
0142 Standard_EXPORT static Handle(Geom2d_Curve) CurveOnPlane (const TopoDS_Edge& E,
0143 const Handle(Geom_Surface)& S,
0144 const TopLoc_Location& L,
0145 Standard_Real& First,
0146 Standard_Real& Last);
0147
0148
0149
0150
0151
0152 Standard_EXPORT static void CurveOnSurface (const TopoDS_Edge& E, Handle(Geom2d_Curve)& C, Handle(Geom_Surface)& S, TopLoc_Location& L, Standard_Real& First, Standard_Real& Last);
0153
0154
0155
0156
0157
0158 Standard_EXPORT static void CurveOnSurface (const TopoDS_Edge& E, Handle(Geom2d_Curve)& C, Handle(Geom_Surface)& S, TopLoc_Location& L, Standard_Real& First, Standard_Real& Last, const Standard_Integer Index);
0159
0160
0161
0162
0163 Standard_EXPORT static Handle(Poly_Polygon2D) PolygonOnSurface (const TopoDS_Edge& E, const TopoDS_Face& F);
0164
0165
0166
0167
0168 Standard_EXPORT static Handle(Poly_Polygon2D) PolygonOnSurface (const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L);
0169
0170
0171
0172
0173 Standard_EXPORT static void PolygonOnSurface (const TopoDS_Edge& E, Handle(Poly_Polygon2D)& C, Handle(Geom_Surface)& S, TopLoc_Location& L);
0174
0175
0176
0177
0178 Standard_EXPORT static void PolygonOnSurface (const TopoDS_Edge& E, Handle(Poly_Polygon2D)& C, Handle(Geom_Surface)& S, TopLoc_Location& L, const Standard_Integer Index);
0179
0180
0181
0182
0183 Standard_EXPORT static const Handle(Poly_PolygonOnTriangulation)& PolygonOnTriangulation (const TopoDS_Edge& E, const Handle(Poly_Triangulation)& T, const TopLoc_Location& L);
0184
0185
0186
0187
0188
0189 Standard_EXPORT static void PolygonOnTriangulation (const TopoDS_Edge& E, Handle(Poly_PolygonOnTriangulation)& P, Handle(Poly_Triangulation)& T, TopLoc_Location& L);
0190
0191
0192
0193
0194
0195 Standard_EXPORT static void PolygonOnTriangulation (const TopoDS_Edge& E, Handle(Poly_PolygonOnTriangulation)& P, Handle(Poly_Triangulation)& T, TopLoc_Location& L, const Standard_Integer Index);
0196
0197
0198
0199
0200 Standard_EXPORT static Standard_Boolean IsClosed (const TopoDS_Edge& E, const TopoDS_Face& F);
0201
0202
0203
0204
0205 Standard_EXPORT static Standard_Boolean IsClosed (const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L);
0206
0207
0208
0209 Standard_EXPORT static Standard_Boolean IsClosed (const TopoDS_Edge& E, const Handle(Poly_Triangulation)& T, const TopLoc_Location& L);
0210
0211
0212 Standard_EXPORT static Standard_Real Tolerance (const TopoDS_Edge& E);
0213
0214
0215 Standard_EXPORT static Standard_Boolean SameParameter (const TopoDS_Edge& E);
0216
0217
0218 Standard_EXPORT static Standard_Boolean SameRange (const TopoDS_Edge& E);
0219
0220
0221 Standard_EXPORT static Standard_Boolean Degenerated (const TopoDS_Edge& E);
0222
0223
0224 Standard_EXPORT static void Range (const TopoDS_Edge& E, Standard_Real& First, Standard_Real& Last);
0225
0226
0227
0228 Standard_EXPORT static void Range (const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L, Standard_Real& First, Standard_Real& Last);
0229
0230
0231 Standard_EXPORT static void Range (const TopoDS_Edge& E, const TopoDS_Face& F, Standard_Real& First, Standard_Real& Last);
0232
0233
0234 Standard_EXPORT static void UVPoints (const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L, gp_Pnt2d& PFirst, gp_Pnt2d& PLast);
0235
0236
0237 Standard_EXPORT static void UVPoints (const TopoDS_Edge& E, const TopoDS_Face& F, gp_Pnt2d& PFirst, gp_Pnt2d& PLast);
0238
0239
0240 Standard_EXPORT static void SetUVPoints (const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L, const gp_Pnt2d& PFirst, const gp_Pnt2d& PLast);
0241
0242
0243 Standard_EXPORT static void SetUVPoints (const TopoDS_Edge& E, const TopoDS_Face& F, const gp_Pnt2d& PFirst, const gp_Pnt2d& PLast);
0244
0245
0246
0247 Standard_EXPORT static Standard_Boolean HasContinuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2);
0248
0249
0250 Standard_EXPORT static GeomAbs_Shape Continuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2);
0251
0252
0253 Standard_EXPORT static Standard_Boolean HasContinuity (const TopoDS_Edge& E, const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const TopLoc_Location& L1, const TopLoc_Location& L2);
0254
0255
0256 Standard_EXPORT static GeomAbs_Shape Continuity (const TopoDS_Edge& E, const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const TopLoc_Location& L1, const TopLoc_Location& L2);
0257
0258
0259
0260 Standard_EXPORT static Standard_Boolean HasContinuity (const TopoDS_Edge& E);
0261
0262
0263 Standard_EXPORT static GeomAbs_Shape MaxContinuity (const TopoDS_Edge& theEdge);
0264
0265
0266 Standard_EXPORT static gp_Pnt Pnt (const TopoDS_Vertex& V);
0267
0268
0269 Standard_EXPORT static Standard_Real Tolerance (const TopoDS_Vertex& V);
0270
0271
0272
0273
0274
0275
0276 Standard_EXPORT static Standard_Boolean Parameter (const TopoDS_Vertex& theV,
0277 const TopoDS_Edge& theE,
0278 Standard_Real &theParam);
0279
0280
0281
0282 Standard_EXPORT static Standard_Real Parameter (const TopoDS_Vertex& V, const TopoDS_Edge& E);
0283
0284
0285
0286 Standard_EXPORT static Standard_Real Parameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, const TopoDS_Face& F);
0287
0288
0289
0290 Standard_EXPORT static Standard_Real Parameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, const Handle(Geom_Surface)& S, const TopLoc_Location& L);
0291
0292
0293 Standard_EXPORT static gp_Pnt2d Parameters (const TopoDS_Vertex& V, const TopoDS_Face& F);
0294
0295
0296
0297
0298 Standard_EXPORT static Standard_Real MaxTolerance (const TopoDS_Shape& theShape, const TopAbs_ShapeEnum theSubShape);
0299
0300 };
0301
0302 #endif