Open CASCADE Technology
6.5.4
|
The class contains handy static functions
dealing with the topology
#include <BOPTools_Tools2D.hxx>
Static Public Member Functions | |
static DEFINE_STANDARD_ALLOC void | RemovePCurveForEdgeOnFace (const TopoDS_Edge &aE, const TopoDS_Face &aF) |
Remove P-Curve of the edge <aE> on the face <aF> | |
static void | BuildPCurveForEdgeOnFace (const TopoDS_Edge &aE, const TopoDS_Face &aF) |
Compute P-Curve for the edge <aE> on the face <aF> | |
static Standard_Boolean | EdgeTangent (const TopoDS_Edge &anE, const Standard_Real aT, gp_Vec &Tau) |
Compute tangent for the edge <aE> [in 3D] at parameter <aT> | |
static void | FaceNormal (const TopoDS_Face &aF, const Standard_Real U, const Standard_Real V, gp_Vec &aN) |
Compute normal for the face <aF> at parameters <U,V> of the corresp. surface. | |
static void | PointOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF, const Standard_Real aT, Standard_Real &U, Standard_Real &V) |
Compute surface parameters <U,V> of the face <aF> for the point from the edge <aE> at parameter <aT>. | |
static void | CurveOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF, Handle< Geom2d_Curve > &aC, Standard_Real &aToler, const Standard_Boolean aTrim3d) |
Get P-Curve <aC> for the edge <aE> on surface <aF> . If the P-Curve does not exist, build it using Make2D(). [aToler] - reached tolerance [aTrim3d] - trimming flag. | |
static void | CurveOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF, Handle< Geom2d_Curve > &aC, Standard_Real &aFirst, Standard_Real &aLast, Standard_Real &aToler, const Standard_Boolean aTrim3d) |
Get P-Curve <aC> for the edge <aE> on surface <aF> . If the P-Curve does not exist, build it using Make2D(). [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance [aTrim3d] - trimming flag. | |
static Standard_Boolean | HasCurveOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF, Handle< Geom2d_Curve > &aC, Standard_Real &aFirst, Standard_Real &aLast, Standard_Real &aToler) |
Returns TRUE if the edge <aE> has P-Curve <aC> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance If the P-Curve does not exist, aC.IsNull()=TRUE. | |
static Standard_Boolean | HasCurveOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF) |
Returns TRUE if the edge <aE> has P-Curve <aC> on surface <aF> . If the P-Curve does not exist, aC.IsNull()=TRUE. | |
static void | MakeCurveOnSurface (const TopoDS_Edge &aE, const TopoDS_Face &aF, Handle< Geom2d_Curve > &aC, Standard_Real &aFirst, Standard_Real &aLast, Standard_Real &aToler, const Standard_Boolean aTrim3d) |
Same as Make2D() | |
static void | Make2D (const TopoDS_Edge &aE, const TopoDS_Face &aF, Handle< Geom2d_Curve > &aC, Standard_Real &aFirst, Standard_Real &aLast, Standard_Real &aToler, const Standard_Boolean aTrim3d) |
Make P-Curve <aC> for the edge <aE> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance [aTrim3d] - trimming flag. | |
static void | MakePCurveOnFace (const TopoDS_Face &aF, const Handle< Geom_Curve > &C3D, Handle< Geom2d_Curve > &aC, Standard_Real &aToler) |
Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aToler] - reached tolerance | |
static void | MakePCurveOnFace (const TopoDS_Face &aF, const Handle< Geom_Curve > &C3D, const Standard_Real aT1, const Standard_Real aT2, Handle< Geom2d_Curve > &aC, Standard_Real &aToler) |
Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aT1, aT2] - range to build [aToler] - reached tolerance | |
static void | AdjustPCurveOnFace (const TopoDS_Face &aF, const Handle< Geom_Curve > &C3D, const Handle< Geom2d_Curve > &aC2D, Handle< Geom2d_Curve > &aC2DA) |
Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . | |
static void | AdjustPCurveOnFace (const TopoDS_Face &aF, const Standard_Real aT1, const Standard_Real aT2, const Handle< Geom2d_Curve > &aC2D, Handle< Geom2d_Curve > &aC2DA) |
Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust | |
static void | MakePCurveOfType (const ProjLib_ProjectedCurve &PC, Handle< Geom2d_Curve > &aC) |
Make empty P-Curve <aC> of relevant to <PC> type | |
static Standard_Boolean | TangentOnEdge (const Standard_Real aParm, const TopoDS_Edge &anE, gp_Vec &aTang) |
Compute tangent for the edge <anE> at parameter <aParm> | |
static Standard_Boolean | TangentOnEdge (const TopoDS_Edge &anE, gp_Dir &aDTang) |
Compute tangent for the edge <anE> at arbitrary intermediate parameter. | |
static Standard_Boolean | TangentOnVertex (const TopoDS_Vertex &aVF, const TopoDS_Vertex &aVL, const TopoDS_Edge &anE, gp_Vec &aTang) |
Compute tangent for the vertex point <aVF> for the edge <anE>. <aVL> is opposite vertex of the edge | |
static void | EdgeBounds (const TopoDS_Edge &anE, Standard_Real &aFirst, Standard_Real &aLast) |
Returns parametric range for the edge <anE>. | |
static Standard_Real | IntermediatePoint (const Standard_Real aFirst, const Standard_Real aLast) |
Compute intermediate value in between [aFirst, aLast] . | |
static Standard_Real | IntermediatePoint (const TopoDS_Edge &anE) |
Compute intermediate value of parameter for the edge <anE>. |
static void BOPTools_Tools2D::AdjustPCurveOnFace | ( | const TopoDS_Face & | aF, |
const Handle< Geom_Curve > & | C3D, | ||
const Handle< Geom2d_Curve > & | aC2D, | ||
Handle< Geom2d_Curve > & | aC2DA | ||
) | [static] |
static void BOPTools_Tools2D::AdjustPCurveOnFace | ( | const TopoDS_Face & | aF, |
const Standard_Real | aT1, | ||
const Standard_Real | aT2, | ||
const Handle< Geom2d_Curve > & | aC2D, | ||
Handle< Geom2d_Curve > & | aC2DA | ||
) | [static] |
static void BOPTools_Tools2D::BuildPCurveForEdgeOnFace | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF | ||
) | [static] |
static void BOPTools_Tools2D::CurveOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aToler, | ||
const Standard_Boolean | aTrim3d | ||
) | [static] |
static void BOPTools_Tools2D::CurveOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aFirst, | ||
Standard_Real & | aLast, | ||
Standard_Real & | aToler, | ||
const Standard_Boolean | aTrim3d | ||
) | [static] |
static void BOPTools_Tools2D::EdgeBounds | ( | const TopoDS_Edge & | anE, |
Standard_Real & | aFirst, | ||
Standard_Real & | aLast | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::EdgeTangent | ( | const TopoDS_Edge & | anE, |
const Standard_Real | aT, | ||
gp_Vec & | Tau | ||
) | [static] |
static void BOPTools_Tools2D::FaceNormal | ( | const TopoDS_Face & | aF, |
const Standard_Real | U, | ||
const Standard_Real | V, | ||
gp_Vec & | aN | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::HasCurveOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aFirst, | ||
Standard_Real & | aLast, | ||
Standard_Real & | aToler | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::HasCurveOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF | ||
) | [static] |
static Standard_Real BOPTools_Tools2D::IntermediatePoint | ( | const Standard_Real | aFirst, |
const Standard_Real | aLast | ||
) | [static] |
static Standard_Real BOPTools_Tools2D::IntermediatePoint | ( | const TopoDS_Edge & | anE | ) | [static] |
static void BOPTools_Tools2D::Make2D | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aFirst, | ||
Standard_Real & | aLast, | ||
Standard_Real & | aToler, | ||
const Standard_Boolean | aTrim3d | ||
) | [static] |
static void BOPTools_Tools2D::MakeCurveOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aFirst, | ||
Standard_Real & | aLast, | ||
Standard_Real & | aToler, | ||
const Standard_Boolean | aTrim3d | ||
) | [static] |
static void BOPTools_Tools2D::MakePCurveOfType | ( | const ProjLib_ProjectedCurve & | PC, |
Handle< Geom2d_Curve > & | aC | ||
) | [static] |
static void BOPTools_Tools2D::MakePCurveOnFace | ( | const TopoDS_Face & | aF, |
const Handle< Geom_Curve > & | C3D, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aToler | ||
) | [static] |
static void BOPTools_Tools2D::MakePCurveOnFace | ( | const TopoDS_Face & | aF, |
const Handle< Geom_Curve > & | C3D, | ||
const Standard_Real | aT1, | ||
const Standard_Real | aT2, | ||
Handle< Geom2d_Curve > & | aC, | ||
Standard_Real & | aToler | ||
) | [static] |
static void BOPTools_Tools2D::PointOnSurface | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF, | ||
const Standard_Real | aT, | ||
Standard_Real & | U, | ||
Standard_Real & | V | ||
) | [static] |
static DEFINE_STANDARD_ALLOC void BOPTools_Tools2D::RemovePCurveForEdgeOnFace | ( | const TopoDS_Edge & | aE, |
const TopoDS_Face & | aF | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::TangentOnEdge | ( | const Standard_Real | aParm, |
const TopoDS_Edge & | anE, | ||
gp_Vec & | aTang | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::TangentOnEdge | ( | const TopoDS_Edge & | anE, |
gp_Dir & | aDTang | ||
) | [static] |
static Standard_Boolean BOPTools_Tools2D::TangentOnVertex | ( | const TopoDS_Vertex & | aVF, |
const TopoDS_Vertex & | aVL, | ||
const TopoDS_Edge & | anE, | ||
gp_Vec & | aTang | ||
) | [static] |