File indexing completed on 2025-01-18 10:04:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeAnalysis_Edge_HeaderFile
0018 #define _ShapeAnalysis_Edge_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <ShapeExtend_Status.hxx>
0026 class TopoDS_Edge;
0027 class Geom_Curve;
0028 class TopoDS_Face;
0029 class Geom_Surface;
0030 class TopLoc_Location;
0031 class Geom2d_Curve;
0032 class gp_Pnt2d;
0033 class TopoDS_Vertex;
0034 class gp_Vec2d;
0035 class gp_Pnt;
0036
0037
0038 #ifdef Status
0039 #undef Status
0040 #endif
0041
0042
0043
0044
0045
0046
0047
0048 class ShapeAnalysis_Edge
0049 {
0050 public:
0051
0052 DEFINE_STANDARD_ALLOC
0053
0054
0055
0056 Standard_EXPORT ShapeAnalysis_Edge();
0057
0058
0059 Standard_EXPORT Standard_Boolean HasCurve3d (const TopoDS_Edge& edge) const;
0060
0061
0062
0063
0064
0065 Standard_EXPORT Standard_Boolean Curve3d (const TopoDS_Edge& edge, Handle(Geom_Curve)& C3d, Standard_Real& cf, Standard_Real& cl, const Standard_Boolean orient = Standard_True) const;
0066
0067
0068
0069 Standard_EXPORT Standard_Boolean IsClosed3d (const TopoDS_Edge& edge) const;
0070
0071
0072 Standard_EXPORT Standard_Boolean HasPCurve (const TopoDS_Edge& edge, const TopoDS_Face& face) const;
0073
0074
0075 Standard_EXPORT Standard_Boolean HasPCurve (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location) const;
0076
0077 Standard_EXPORT Standard_Boolean PCurve (const TopoDS_Edge& edge, const TopoDS_Face& face, Handle(Geom2d_Curve)& C2d, Standard_Real& cf, Standard_Real& cl, const Standard_Boolean orient = Standard_True) const;
0078
0079
0080
0081
0082
0083
0084 Standard_EXPORT Standard_Boolean PCurve (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location, Handle(Geom2d_Curve)& C2d, Standard_Real& cf, Standard_Real& cl, const Standard_Boolean orient = Standard_True) const;
0085
0086 Standard_EXPORT Standard_Boolean BoundUV (const TopoDS_Edge& edge, const TopoDS_Face& face, gp_Pnt2d& first, gp_Pnt2d& last) const;
0087
0088
0089
0090 Standard_EXPORT Standard_Boolean BoundUV (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location, gp_Pnt2d& first, gp_Pnt2d& last) const;
0091
0092 Standard_EXPORT Standard_Boolean IsSeam (const TopoDS_Edge& edge, const TopoDS_Face& face) const;
0093
0094
0095 Standard_EXPORT Standard_Boolean IsSeam (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location) const;
0096
0097
0098
0099 Standard_EXPORT TopoDS_Vertex FirstVertex (const TopoDS_Edge& edge) const;
0100
0101
0102
0103 Standard_EXPORT TopoDS_Vertex LastVertex (const TopoDS_Edge& edge) const;
0104
0105 Standard_EXPORT Standard_Boolean GetEndTangent2d (const TopoDS_Edge& edge, const TopoDS_Face& face, const Standard_Boolean atEnd, gp_Pnt2d& pos, gp_Vec2d& tang, const Standard_Real dparam = 0.0) const;
0106
0107
0108
0109
0110
0111
0112 Standard_EXPORT Standard_Boolean GetEndTangent2d (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location, const Standard_Boolean atEnd, gp_Pnt2d& pos, gp_Vec2d& tang, const Standard_Real dparam = 0.0) const;
0113
0114
0115
0116
0117
0118
0119
0120
0121 Standard_EXPORT Standard_Boolean CheckVerticesWithCurve3d (const TopoDS_Edge& edge, const Standard_Real preci = -1, const Standard_Integer vtx = 0);
0122
0123 Standard_EXPORT Standard_Boolean CheckVerticesWithPCurve (const TopoDS_Edge& edge, const TopoDS_Face& face, const Standard_Real preci = -1, const Standard_Integer vtx = 0);
0124
0125
0126
0127
0128
0129
0130
0131
0132 Standard_EXPORT Standard_Boolean CheckVerticesWithPCurve (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location, const Standard_Real preci = -1, const Standard_Integer vtx = 0);
0133
0134 Standard_EXPORT Standard_Boolean CheckVertexTolerance (const TopoDS_Edge& edge, const TopoDS_Face& face, Standard_Real& toler1, Standard_Real& toler2);
0135
0136
0137
0138
0139
0140
0141
0142 Standard_EXPORT Standard_Boolean CheckVertexTolerance (const TopoDS_Edge& edge, Standard_Real& toler1, Standard_Real& toler2);
0143
0144 Standard_EXPORT Standard_Boolean CheckCurve3dWithPCurve (const TopoDS_Edge& edge, const TopoDS_Face& face);
0145
0146
0147
0148 Standard_EXPORT Standard_Boolean CheckCurve3dWithPCurve (const TopoDS_Edge& edge, const Handle(Geom_Surface)& surface, const TopLoc_Location& location);
0149
0150
0151 Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const;
0152
0153
0154
0155
0156
0157
0158
0159
0160 Standard_EXPORT Standard_Boolean CheckSameParameter (const TopoDS_Edge& edge, Standard_Real& maxdev, const Standard_Integer NbControl = 23);
0161
0162
0163
0164
0165
0166
0167
0168
0169 Standard_EXPORT Standard_Boolean CheckSameParameter (const TopoDS_Edge& theEdge, const TopoDS_Face& theFace, Standard_Real& theMaxdev, const Standard_Integer theNbControl = 23);
0170
0171
0172
0173 Standard_EXPORT Standard_Boolean CheckPCurveRange (const Standard_Real theFirst, const Standard_Real theLast,
0174 const Handle(Geom2d_Curve)& thePC);
0175
0176
0177
0178
0179
0180 Standard_EXPORT Standard_Boolean CheckOverlapping (const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2, Standard_Real& theTolOverlap, const Standard_Real theDomainDist = 0.0);
0181
0182
0183
0184
0185 protected:
0186
0187
0188
0189 Standard_Integer myStatus;
0190
0191
0192 private:
0193
0194
0195
0196
0197
0198
0199 Standard_EXPORT Standard_Boolean CheckPoints (const gp_Pnt& P1A, const gp_Pnt& P1B, const gp_Pnt& P2A, const gp_Pnt& P2B, const Standard_Real preci1, const Standard_Real preci2);
0200
0201
0202
0203
0204 };
0205
0206
0207
0208
0209
0210
0211
0212 #endif