OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRep_Tool Class Reference

    Provides class methods to access to the geometry of BRep shapes. More...

    #include <BRep_Tool.hxx>

    Static Public Member Functions

    static bool IsClosed (const TopoDS_Shape &S)
     If S is Shell, returns True if it has no free boundaries (edges). If S is Wire, returns True if it has no free ends (vertices). (Internal and External sub-shepes are ignored in these checks) If S is Edge, returns True if its vertices are the same. For other shape types returns S.Closed().
    static const occ::handle< Geom_Surface > & Surface (const TopoDS_Face &F, TopLoc_Location &L)
     Returns the geometric surface of the face. Returns in <L> the location for the surface.
    static occ::handle< Geom_SurfaceSurface (const TopoDS_Face &F)
     Returns the geometric surface of the face. It can be a copy if there is a Location.
    static const occ::handle< Poly_Triangulation > & Triangulation (const TopoDS_Face &theFace, TopLoc_Location &theLocation, const Poly_MeshPurpose theMeshPurpose=Poly_MeshPurpose_NONE)
     Returns the triangulation of the face according to the mesh purpose.
    static const NCollection_List< occ::handle< Poly_Triangulation > > & Triangulations (const TopoDS_Face &theFace, TopLoc_Location &theLocation)
     Returns all triangulations of the face.
    static double Tolerance (const TopoDS_Face &F)
     Returns the tolerance of the face.
    static bool NaturalRestriction (const TopoDS_Face &F)
     Returns the NaturalRestriction flag of the face.
    static bool IsGeometric (const TopoDS_Face &F)
     Returns True if <F> has a surface, false otherwise.
    static bool IsGeometric (const TopoDS_Edge &E)
     Returns True if <E> is a 3d curve or a curve on surface.
    static const occ::handle< Geom_Curve > & Curve (const TopoDS_Edge &E, TopLoc_Location &L, double &First, double &Last)
     Returns the 3D curve of the edge. May be a Null handle. Returns in <L> the location for the curve. In <First> and <Last> the parameter range.
    static occ::handle< Geom_CurveCurve (const TopoDS_Edge &E, double &First, double &Last)
     Returns the 3D curve of the edge. May be a Null handle. In <First> and <Last> the parameter range. It can be a copy if there is a Location.
    static const occ::handle< Poly_Polygon3D > & Polygon3D (const TopoDS_Edge &E, TopLoc_Location &L)
     Returns the 3D polygon of the edge. May be a Null handle. Returns in <L> the location for the polygon.
    static occ::handle< Geom2d_CurveCurveOnSurface (const TopoDS_Edge &E, const TopoDS_Face &F, double &First, double &Last, bool *theIsStored=nullptr)
     Returns the curve associated to the edge in the parametric space of the face. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
    static occ::handle< Geom2d_CurveCurveOnSurface (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L, double &First, double &Last, bool *theIsStored=nullptr)
     Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
    static occ::handle< Geom2d_CurveCurveOnPlane (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L, double &First, double &Last)
     For the planar surface builds the 2d curve for the edge by projection of the edge on plane. Returns a NULL handle if the surface is not planar or the projection failed.
    static void CurveOnSurface (const TopoDS_Edge &E, occ::handle< Geom2d_Curve > &C, occ::handle< Geom_Surface > &S, TopLoc_Location &L, double &First, double &Last)
     Returns in , , <L> a 2d curve, a surface and a location for the edge <E>. and are null if the edge has no curve on surface. Returns in <First> and <Last> the parameter range.
    static void CurveOnSurface (const TopoDS_Edge &E, occ::handle< Geom2d_Curve > &C, occ::handle< Geom_Surface > &S, TopLoc_Location &L, double &First, double &Last, const int Index)
     Returns in , , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range. Returns in <First> and <Last> the parameter range.
    static occ::handle< Poly_Polygon2DPolygonOnSurface (const TopoDS_Edge &E, const TopoDS_Face &F)
     Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
    static occ::handle< Poly_Polygon2DPolygonOnSurface (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L)
     Returns the polygon associated to the edge in the parametric space of the surface. Returns a NULL handle if this polygon does not exist.
    static void PolygonOnSurface (const TopoDS_Edge &E, occ::handle< Poly_Polygon2D > &C, occ::handle< Geom_Surface > &S, TopLoc_Location &L)
     Returns in , , <L> a 2d curve, a surface and a location for the edge <E>. and are null if the edge has no polygon on surface.
    static void PolygonOnSurface (const TopoDS_Edge &E, occ::handle< Poly_Polygon2D > &C, occ::handle< Geom_Surface > &S, TopLoc_Location &L, const int Index)
     Returns in , , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range.
    static const occ::handle< Poly_PolygonOnTriangulation > & PolygonOnTriangulation (const TopoDS_Edge &E, const occ::handle< Poly_Triangulation > &T, const TopLoc_Location &L)
     Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
    static void PolygonOnTriangulation (const TopoDS_Edge &E, occ::handle< Poly_PolygonOnTriangulation > &P, occ::handle< Poly_Triangulation > &T, TopLoc_Location &L)
     Returns in.
    static void PolygonOnTriangulation (const TopoDS_Edge &E, occ::handle< Poly_PolygonOnTriangulation > &P, occ::handle< Poly_Triangulation > &T, TopLoc_Location &L, const int Index)
     Returns in.
    static bool IsClosed (const TopoDS_Edge &E, const TopoDS_Face &F)
     Returns True if <E> has two PCurves in the parametric space of <F>. i.e. <F> is on a closed surface and <E> is on the closing curve.
    static bool IsClosed (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L)
     Returns True if <E> has two PCurves in the parametric space of . i.e. is a closed surface and <E> is on the closing curve.
    static bool IsClosed (const TopoDS_Edge &E, const occ::handle< Poly_Triangulation > &T, const TopLoc_Location &L)
     Returns True if <E> has two arrays of indices in the triangulation <T>.
    static double Tolerance (const TopoDS_Edge &E)
     Returns the tolerance for <E>.
    static bool SameParameter (const TopoDS_Edge &E)
     Returns the SameParameter flag for the edge.
    static bool SameRange (const TopoDS_Edge &E)
     Returns the SameRange flag for the edge.
    static bool Degenerated (const TopoDS_Edge &E)
     Returns True if the edge is degenerated.
    static void Range (const TopoDS_Edge &E, double &First, double &Last)
     Gets the range of the 3d curve.
    static void Range (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L, double &First, double &Last)
     Gets the range of the edge on the pcurve on the surface.
    static void Range (const TopoDS_Edge &E, const TopoDS_Face &F, double &First, double &Last)
     Gets the range of the edge on the pcurve on the face.
    static void UVPoints (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L, gp_Pnt2d &PFirst, gp_Pnt2d &PLast)
     Gets the UV locations of the extremities of the edge.
    static void UVPoints (const TopoDS_Edge &E, const TopoDS_Face &F, gp_Pnt2d &PFirst, gp_Pnt2d &PLast)
     Gets the UV locations of the extremities of the edge.
    static void SetUVPoints (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L, const gp_Pnt2d &PFirst, const gp_Pnt2d &PLast)
     Sets the UV locations of the extremities of the edge.
    static void SetUVPoints (const TopoDS_Edge &E, const TopoDS_Face &F, const gp_Pnt2d &PFirst, const gp_Pnt2d &PLast)
     Sets the UV locations of the extremities of the edge.
    static bool HasContinuity (const TopoDS_Edge &E, const TopoDS_Face &F1, const TopoDS_Face &F2)
     Returns True if the edge is on the surfaces of the two faces.
    static GeomAbs_Shape Continuity (const TopoDS_Edge &E, const TopoDS_Face &F1, const TopoDS_Face &F2)
     Returns the continuity.
    static bool HasContinuity (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S1, const occ::handle< Geom_Surface > &S2, const TopLoc_Location &L1, const TopLoc_Location &L2)
     Returns True if the edge is on the surfaces.
    static GeomAbs_Shape Continuity (const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S1, const occ::handle< Geom_Surface > &S2, const TopLoc_Location &L1, const TopLoc_Location &L2)
     Returns the continuity.
    static bool HasContinuity (const TopoDS_Edge &E)
     Returns True if the edge has regularity on some two surfaces.
    static GeomAbs_Shape MaxContinuity (const TopoDS_Edge &theEdge)
     Returns the max continuity of edge between some surfaces or GeomAbs_C0 if there are no such surfaces.
    static gp_Pnt Pnt (const TopoDS_Vertex &V)
     Returns the 3d point.
    static double Tolerance (const TopoDS_Vertex &V)
     Returns the tolerance.
    static bool Parameter (const TopoDS_Vertex &theV, const TopoDS_Edge &theE, double &theParam)
     Finds the parameter of <theV> on <theE>.
    static double Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E)
     Returns the parameter of <V> on <E>. Throws Standard_NoSuchObject if no parameter on edge.
    static double Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E, const TopoDS_Face &F)
     Returns the parameters of the vertex on the pcurve of the edge on the face.
    static double Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E, const occ::handle< Geom_Surface > &S, const TopLoc_Location &L)
     Returns the parameters of the vertex on the pcurve of the edge on the surface.
    static gp_Pnt2d Parameters (const TopoDS_Vertex &V, const TopoDS_Face &F)
     Returns the parameters of the vertex on the face.
    static double MaxTolerance (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theSubShape)
     Returns the maximum tolerance of input shape subshapes.

    Detailed Description

    Provides class methods to access to the geometry of BRep shapes.

    Member Function Documentation

    ◆ Continuity() [1/2]

    GeomAbs_Shape BRep_Tool::Continuity ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S1,
    const occ::handle< Geom_Surface > & S2,
    const TopLoc_Location & L1,
    const TopLoc_Location & L2 )
    static

    Returns the continuity.

    ◆ Continuity() [2/2]

    GeomAbs_Shape BRep_Tool::Continuity ( const TopoDS_Edge & E,
    const TopoDS_Face & F1,
    const TopoDS_Face & F2 )
    static

    Returns the continuity.

    ◆ Curve() [1/2]

    occ::handle< Geom_Curve > BRep_Tool::Curve ( const TopoDS_Edge & E,
    double & First,
    double & Last )
    static

    Returns the 3D curve of the edge. May be a Null handle. In <First> and <Last> the parameter range. It can be a copy if there is a Location.

    ◆ Curve() [2/2]

    const occ::handle< Geom_Curve > & BRep_Tool::Curve ( const TopoDS_Edge & E,
    TopLoc_Location & L,
    double & First,
    double & Last )
    static

    Returns the 3D curve of the edge. May be a Null handle. Returns in <L> the location for the curve. In <First> and <Last> the parameter range.

    ◆ CurveOnPlane()

    occ::handle< Geom2d_Curve > BRep_Tool::CurveOnPlane ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L,
    double & First,
    double & Last )
    static

    For the planar surface builds the 2d curve for the edge by projection of the edge on plane. Returns a NULL handle if the surface is not planar or the projection failed.

    ◆ CurveOnSurface() [1/4]

    occ::handle< Geom2d_Curve > BRep_Tool::CurveOnSurface ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L,
    double & First,
    double & Last,
    bool * theIsStored = nullptr )
    static

    Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.

    ◆ CurveOnSurface() [2/4]

    occ::handle< Geom2d_Curve > BRep_Tool::CurveOnSurface ( const TopoDS_Edge & E,
    const TopoDS_Face & F,
    double & First,
    double & Last,
    bool * theIsStored = nullptr )
    static

    Returns the curve associated to the edge in the parametric space of the face. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.

    ◆ CurveOnSurface() [3/4]

    void BRep_Tool::CurveOnSurface ( const TopoDS_Edge & E,
    occ::handle< Geom2d_Curve > & C,
    occ::handle< Geom_Surface > & S,
    TopLoc_Location & L,
    double & First,
    double & Last )
    static

    Returns in , , <L> a 2d curve, a surface and a location for the edge <E>. and are null if the edge has no curve on surface. Returns in <First> and <Last> the parameter range.

    ◆ CurveOnSurface() [4/4]

    void BRep_Tool::CurveOnSurface ( const TopoDS_Edge & E,
    occ::handle< Geom2d_Curve > & C,
    occ::handle< Geom_Surface > & S,
    TopLoc_Location & L,
    double & First,
    double & Last,
    const int Index )
    static

    Returns in , , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range. Returns in <First> and <Last> the parameter range.

    ◆ Degenerated()

    bool BRep_Tool::Degenerated ( const TopoDS_Edge & E)
    static

    Returns True if the edge is degenerated.

    ◆ HasContinuity() [1/3]

    bool BRep_Tool::HasContinuity ( const TopoDS_Edge & E)
    static

    Returns True if the edge has regularity on some two surfaces.

    ◆ HasContinuity() [2/3]

    bool BRep_Tool::HasContinuity ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S1,
    const occ::handle< Geom_Surface > & S2,
    const TopLoc_Location & L1,
    const TopLoc_Location & L2 )
    static

    Returns True if the edge is on the surfaces.

    ◆ HasContinuity() [3/3]

    bool BRep_Tool::HasContinuity ( const TopoDS_Edge & E,
    const TopoDS_Face & F1,
    const TopoDS_Face & F2 )
    static

    Returns True if the edge is on the surfaces of the two faces.

    ◆ IsClosed() [1/4]

    bool BRep_Tool::IsClosed ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L )
    static

    Returns True if <E> has two PCurves in the parametric space of . i.e. is a closed surface and <E> is on the closing curve.

    ◆ IsClosed() [2/4]

    bool BRep_Tool::IsClosed ( const TopoDS_Edge & E,
    const occ::handle< Poly_Triangulation > & T,
    const TopLoc_Location & L )
    static

    Returns True if <E> has two arrays of indices in the triangulation <T>.

    ◆ IsClosed() [3/4]

    bool BRep_Tool::IsClosed ( const TopoDS_Edge & E,
    const TopoDS_Face & F )
    static

    Returns True if <E> has two PCurves in the parametric space of <F>. i.e. <F> is on a closed surface and <E> is on the closing curve.

    ◆ IsClosed() [4/4]

    bool BRep_Tool::IsClosed ( const TopoDS_Shape & S)
    static

    If S is Shell, returns True if it has no free boundaries (edges). If S is Wire, returns True if it has no free ends (vertices). (Internal and External sub-shepes are ignored in these checks) If S is Edge, returns True if its vertices are the same. For other shape types returns S.Closed().

    ◆ IsGeometric() [1/2]

    bool BRep_Tool::IsGeometric ( const TopoDS_Edge & E)
    static

    Returns True if <E> is a 3d curve or a curve on surface.

    ◆ IsGeometric() [2/2]

    bool BRep_Tool::IsGeometric ( const TopoDS_Face & F)
    static

    Returns True if <F> has a surface, false otherwise.

    ◆ MaxContinuity()

    GeomAbs_Shape BRep_Tool::MaxContinuity ( const TopoDS_Edge & theEdge)
    static

    Returns the max continuity of edge between some surfaces or GeomAbs_C0 if there are no such surfaces.

    ◆ MaxTolerance()

    double BRep_Tool::MaxTolerance ( const TopoDS_Shape & theShape,
    const TopAbs_ShapeEnum theSubShape )
    static

    Returns the maximum tolerance of input shape subshapes.

    ◆ NaturalRestriction()

    bool BRep_Tool::NaturalRestriction ( const TopoDS_Face & F)
    static

    Returns the NaturalRestriction flag of the face.

    ◆ Parameter() [1/4]

    bool BRep_Tool::Parameter ( const TopoDS_Vertex & theV,
    const TopoDS_Edge & theE,
    double & theParam )
    static

    Finds the parameter of <theV> on <theE>.

    Parameters
    [in]theVinput vertex
    [in]theEinput edge
    [out]theParamcalculated parameter on the curve
    Returns
    TRUE if done

    ◆ Parameter() [2/4]

    double BRep_Tool::Parameter ( const TopoDS_Vertex & V,
    const TopoDS_Edge & E )
    static

    Returns the parameter of <V> on <E>. Throws Standard_NoSuchObject if no parameter on edge.

    ◆ Parameter() [3/4]

    double BRep_Tool::Parameter ( const TopoDS_Vertex & V,
    const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L )
    static

    Returns the parameters of the vertex on the pcurve of the edge on the surface.

    ◆ Parameter() [4/4]

    double BRep_Tool::Parameter ( const TopoDS_Vertex & V,
    const TopoDS_Edge & E,
    const TopoDS_Face & F )
    static

    Returns the parameters of the vertex on the pcurve of the edge on the face.

    ◆ Parameters()

    gp_Pnt2d BRep_Tool::Parameters ( const TopoDS_Vertex & V,
    const TopoDS_Face & F )
    static

    Returns the parameters of the vertex on the face.

    ◆ Pnt()

    gp_Pnt BRep_Tool::Pnt ( const TopoDS_Vertex & V)
    static

    Returns the 3d point.

    ◆ Polygon3D()

    const occ::handle< Poly_Polygon3D > & BRep_Tool::Polygon3D ( const TopoDS_Edge & E,
    TopLoc_Location & L )
    static

    Returns the 3D polygon of the edge. May be a Null handle. Returns in <L> the location for the polygon.

    ◆ PolygonOnSurface() [1/4]

    occ::handle< Poly_Polygon2D > BRep_Tool::PolygonOnSurface ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L )
    static

    Returns the polygon associated to the edge in the parametric space of the surface. Returns a NULL handle if this polygon does not exist.

    ◆ PolygonOnSurface() [2/4]

    occ::handle< Poly_Polygon2D > BRep_Tool::PolygonOnSurface ( const TopoDS_Edge & E,
    const TopoDS_Face & F )
    static

    Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.

    ◆ PolygonOnSurface() [3/4]

    void BRep_Tool::PolygonOnSurface ( const TopoDS_Edge & E,
    occ::handle< Poly_Polygon2D > & C,
    occ::handle< Geom_Surface > & S,
    TopLoc_Location & L )
    static

    Returns in , , <L> a 2d curve, a surface and a location for the edge <E>. and are null if the edge has no polygon on surface.

    ◆ PolygonOnSurface() [4/4]

    void BRep_Tool::PolygonOnSurface ( const TopoDS_Edge & E,
    occ::handle< Poly_Polygon2D > & C,
    occ::handle< Geom_Surface > & S,
    TopLoc_Location & L,
    const int Index )
    static

    Returns in , , <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. and are null if the index is out of range.

    ◆ PolygonOnTriangulation() [1/3]

    const occ::handle< Poly_PolygonOnTriangulation > & BRep_Tool::PolygonOnTriangulation ( const TopoDS_Edge & E,
    const occ::handle< Poly_Triangulation > & T,
    const TopLoc_Location & L )
    static

    Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.

    ◆ PolygonOnTriangulation() [2/3]

    void BRep_Tool::PolygonOnTriangulation ( const TopoDS_Edge & E,
    occ::handle< Poly_PolygonOnTriangulation > & P,
    occ::handle< Poly_Triangulation > & T,
    TopLoc_Location & L )
    static

    Returns in.

    , <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E>.

    and <T> are null if the edge has no polygon on triangulation.

    ◆ PolygonOnTriangulation() [3/3]

    void BRep_Tool::PolygonOnTriangulation ( const TopoDS_Edge & E,
    occ::handle< Poly_PolygonOnTriangulation > & P,
    occ::handle< Poly_Triangulation > & T,
    TopLoc_Location & L,
    const int Index )
    static

    Returns in.

    , <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E> for the range index. and are null if the edge has no polygon on triangulation.

    ◆ Range() [1/3]

    void BRep_Tool::Range ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L,
    double & First,
    double & Last )
    static

    Gets the range of the edge on the pcurve on the surface.

    ◆ Range() [2/3]

    void BRep_Tool::Range ( const TopoDS_Edge & E,
    const TopoDS_Face & F,
    double & First,
    double & Last )
    static

    Gets the range of the edge on the pcurve on the face.

    ◆ Range() [3/3]

    void BRep_Tool::Range ( const TopoDS_Edge & E,
    double & First,
    double & Last )
    static

    Gets the range of the 3d curve.

    ◆ SameParameter()

    bool BRep_Tool::SameParameter ( const TopoDS_Edge & E)
    static

    Returns the SameParameter flag for the edge.

    ◆ SameRange()

    bool BRep_Tool::SameRange ( const TopoDS_Edge & E)
    static

    Returns the SameRange flag for the edge.

    ◆ SetUVPoints() [1/2]

    void BRep_Tool::SetUVPoints ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L,
    const gp_Pnt2d & PFirst,
    const gp_Pnt2d & PLast )
    static

    Sets the UV locations of the extremities of the edge.

    ◆ SetUVPoints() [2/2]

    void BRep_Tool::SetUVPoints ( const TopoDS_Edge & E,
    const TopoDS_Face & F,
    const gp_Pnt2d & PFirst,
    const gp_Pnt2d & PLast )
    static

    Sets the UV locations of the extremities of the edge.

    ◆ Surface() [1/2]

    occ::handle< Geom_Surface > BRep_Tool::Surface ( const TopoDS_Face & F)
    static

    Returns the geometric surface of the face. It can be a copy if there is a Location.

    ◆ Surface() [2/2]

    const occ::handle< Geom_Surface > & BRep_Tool::Surface ( const TopoDS_Face & F,
    TopLoc_Location & L )
    static

    Returns the geometric surface of the face. Returns in <L> the location for the surface.

    ◆ Tolerance() [1/3]

    double BRep_Tool::Tolerance ( const TopoDS_Edge & E)
    static

    Returns the tolerance for <E>.

    ◆ Tolerance() [2/3]

    double BRep_Tool::Tolerance ( const TopoDS_Face & F)
    static

    Returns the tolerance of the face.

    ◆ Tolerance() [3/3]

    double BRep_Tool::Tolerance ( const TopoDS_Vertex & V)
    static

    Returns the tolerance.

    ◆ Triangulation()

    const occ::handle< Poly_Triangulation > & BRep_Tool::Triangulation ( const TopoDS_Face & theFace,
    TopLoc_Location & theLocation,
    const Poly_MeshPurpose theMeshPurpose = Poly_MeshPurpose_NONE )
    static

    Returns the triangulation of the face according to the mesh purpose.

    Parameters
    [in]theFacethe input face to find triangulation.
    [out]theLocationthe face location.
    [in]theMeshPurposea mesh purpose to find appropriate triangulation (NONE by default).
    Returns
    an active triangulation in case of NONE purpose, the first triangulation appropriate for the input purpose, just the first triangulation if none matching other criteria and input purpose is AnyFallback or null handle if there is no any suitable triangulation.

    ◆ Triangulations()

    const NCollection_List< occ::handle< Poly_Triangulation > > & BRep_Tool::Triangulations ( const TopoDS_Face & theFace,
    TopLoc_Location & theLocation )
    static

    Returns all triangulations of the face.

    Parameters
    [in]theFacethe input face.
    [out]theLocationthe face location.
    Returns
    list of all available face triangulations.

    ◆ UVPoints() [1/2]

    void BRep_Tool::UVPoints ( const TopoDS_Edge & E,
    const occ::handle< Geom_Surface > & S,
    const TopLoc_Location & L,
    gp_Pnt2d & PFirst,
    gp_Pnt2d & PLast )
    static

    Gets the UV locations of the extremities of the edge.

    ◆ UVPoints() [2/2]

    void BRep_Tool::UVPoints ( const TopoDS_Edge & E,
    const TopoDS_Face & F,
    gp_Pnt2d & PFirst,
    gp_Pnt2d & PLast )
    static

    Gets the UV locations of the extremities of the edge.


    The documentation for this class was generated from the following file: