OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepMesh_ShapeTool Class Reference

    Auxiliary class providing functionality to compute, retrieve and store data to TopoDS and model shape. More...

    #include <BRepMesh_ShapeTool.hxx>

    Inheritance diagram for BRepMesh_ShapeTool:

    Static Public Member Functions

    static double MaxFaceTolerance (const TopoDS_Face &theFace)
     Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.
    static void BoxMaxDimension (const Bnd_Box &theBox, double &theMaxDimension)
     Gets the maximum dimension of the given bounding box. If the given bounding box is void leaves the resulting value unchanged.
    static void CheckAndUpdateFlags (const IMeshData::IEdgeHandle &theEdge, const IMeshData::IPCurveHandle &thePCurve)
     Checks same parameter, same range and degenerativity attributes using geometrical data of the given edge and updates edge model by computed parameters in case of worst case - it can drop flags same parameter and same range to False but never to True if it is already set to False. In contrary, it can also drop degenerated flag to True, but never to False if it is already set to True.
    static void AddInFace (const TopoDS_Face &theFace, occ::handle< Poly_Triangulation > &theTriangulation)
     Stores the given triangulation into the given face.
    static void NullifyFace (const TopoDS_Face &theFace)
     Nullifies triangulation stored in the face.
    static void NullifyEdge (const TopoDS_Edge &theEdge, const occ::handle< Poly_Triangulation > &theTriangulation, const TopLoc_Location &theLocation)
     Nullifies polygon on triangulation stored in the edge.
    static void NullifyEdge (const TopoDS_Edge &theEdge, const TopLoc_Location &theLocation)
     Nullifies 3d polygon stored in the edge.
    static void UpdateEdge (const TopoDS_Edge &theEdge, const occ::handle< Poly_PolygonOnTriangulation > &thePolygon, const occ::handle< Poly_Triangulation > &theTriangulation, const TopLoc_Location &theLocation)
     Updates the given edge by the given tessellated representation.
    static void UpdateEdge (const TopoDS_Edge &theEdge, const occ::handle< Poly_Polygon3D > &thePolygon)
     Updates the given edge by the given tessellated representation.
    static void UpdateEdge (const TopoDS_Edge &theEdge, const occ::handle< Poly_PolygonOnTriangulation > &thePolygon1, const occ::handle< Poly_PolygonOnTriangulation > &thePolygon2, const occ::handle< Poly_Triangulation > &theTriangulation, const TopLoc_Location &theLocation)
     Updates the given seam edge by the given tessellated representations.
    static gp_Pnt UseLocation (const gp_Pnt &thePnt, const TopLoc_Location &theLoc)
     Applies location to the given point and return result.
    static bool UVPoints (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace, gp_Pnt2d &theFirstPoint2d, gp_Pnt2d &theLastPoint2d, const bool isConsiderOrientation=false)
     Gets the strict UV locations of the extremities of the edge using pcurve.
    static bool Range (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace, occ::handle< Geom2d_Curve > &thePCurve, double &theFirstParam, double &theLastParam, const bool isConsiderOrientation=false)
     Gets the parametric range of the given edge on the given face.
    static bool Range (const TopoDS_Edge &theEdge, occ::handle< Geom_Curve > &theCurve, double &theFirstParam, double &theLastParam, const bool isConsiderOrientation=false)
     Gets the 3d range of the given edge.
    static constexpr const char * get_type_name ()
     Returns a type descriptor about this object.
    static const opencascade::handle< Standard_Type > & get_type_descriptor ()
     Returns type descriptor of Standard_Transient class.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transient & operator= (const Standard_Transient &)
     Assignment operator, needed to avoid copying reference counter.
    virtual ~Standard_Transient ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool IsKind (const opencascade::handle< Standard_Type > &theType) const
     Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    bool IsKind (const char *const theTypeName) const
     Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    Standard_Transient * This () const
     Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Detailed Description

    Auxiliary class providing functionality to compute, retrieve and store data to TopoDS and model shape.

    Member Function Documentation

    ◆ AddInFace()

    void BRepMesh_ShapeTool::AddInFace ( const TopoDS_Face & theFace,
    occ::handle< Poly_Triangulation > & theTriangulation )
    static

    Stores the given triangulation into the given face.

    Parameters
    theFaceface to be updated by triangulation.
    theTriangulationtriangulation to be stored into the face.

    ◆ BoxMaxDimension()

    void BRepMesh_ShapeTool::BoxMaxDimension ( const Bnd_Box & theBox,
    double & theMaxDimension )
    static

    Gets the maximum dimension of the given bounding box. If the given bounding box is void leaves the resulting value unchanged.

    Parameters
    theBoxbounding box to be processed.
    theMaxDimensionmaximum dimension of the given box.

    ◆ CheckAndUpdateFlags()

    void BRepMesh_ShapeTool::CheckAndUpdateFlags ( const IMeshData::IEdgeHandle & theEdge,
    const IMeshData::IPCurveHandle & thePCurve )
    static

    Checks same parameter, same range and degenerativity attributes using geometrical data of the given edge and updates edge model by computed parameters in case of worst case - it can drop flags same parameter and same range to False but never to True if it is already set to False. In contrary, it can also drop degenerated flag to True, but never to False if it is already set to True.

    ◆ MaxFaceTolerance()

    double BRepMesh_ShapeTool::MaxFaceTolerance ( const TopoDS_Face & theFace)
    static

    Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.

    ◆ NullifyEdge() [1/2]

    void BRepMesh_ShapeTool::NullifyEdge ( const TopoDS_Edge & theEdge,
    const occ::handle< Poly_Triangulation > & theTriangulation,
    const TopLoc_Location & theLocation )
    static

    Nullifies polygon on triangulation stored in the edge.

    Parameters
    theEdgeedge to be updated by null polygon.
    theTriangulationtriangulation the given edge is associated to.
    theLocationface location.

    ◆ NullifyEdge() [2/2]

    void BRepMesh_ShapeTool::NullifyEdge ( const TopoDS_Edge & theEdge,
    const TopLoc_Location & theLocation )
    static

    Nullifies 3d polygon stored in the edge.

    Parameters
    theEdgeedge to be updated by null polygon.
    theLocationface location.

    ◆ NullifyFace()

    void BRepMesh_ShapeTool::NullifyFace ( const TopoDS_Face & theFace)
    static

    Nullifies triangulation stored in the face.

    Parameters
    theFaceface to be updated by null triangulation.

    ◆ Range() [1/2]

    bool BRepMesh_ShapeTool::Range ( const TopoDS_Edge & theEdge,
    const TopoDS_Face & theFace,
    occ::handle< Geom2d_Curve > & thePCurve,
    double & theFirstParam,
    double & theLastParam,
    const bool isConsiderOrientation = false )
    static

    Gets the parametric range of the given edge on the given face.

    ◆ Range() [2/2]

    bool BRepMesh_ShapeTool::Range ( const TopoDS_Edge & theEdge,
    occ::handle< Geom_Curve > & theCurve,
    double & theFirstParam,
    double & theLastParam,
    const bool isConsiderOrientation = false )
    static

    Gets the 3d range of the given edge.

    ◆ UpdateEdge() [1/3]

    void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
    const occ::handle< Poly_Polygon3D > & thePolygon )
    static

    Updates the given edge by the given tessellated representation.

    Parameters
    theEdgeedge to be updated.
    thePolygontessellated representation of the edge to be stored.

    ◆ UpdateEdge() [2/3]

    void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
    const occ::handle< Poly_PolygonOnTriangulation > & thePolygon,
    const occ::handle< Poly_Triangulation > & theTriangulation,
    const TopLoc_Location & theLocation )
    static

    Updates the given edge by the given tessellated representation.

    Parameters
    theEdgeedge to be updated.
    thePolygontessellated representation of the edge to be stored.
    theTriangulationtriangulation the given edge is associated to.
    theLocationface location.

    ◆ UpdateEdge() [3/3]

    void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
    const occ::handle< Poly_PolygonOnTriangulation > & thePolygon1,
    const occ::handle< Poly_PolygonOnTriangulation > & thePolygon2,
    const occ::handle< Poly_Triangulation > & theTriangulation,
    const TopLoc_Location & theLocation )
    static

    Updates the given seam edge by the given tessellated representations.

    Parameters
    theEdgeedge to be updated.
    thePolygon1tessellated representation corresponding to forward direction of the seam edge.
    thePolygon2tessellated representation corresponding to reversed direction of the seam edge.
    theTriangulationtriangulation the given edge is associated to.
    theLocationface location.

    ◆ UseLocation()

    gp_Pnt BRepMesh_ShapeTool::UseLocation ( const gp_Pnt & thePnt,
    const TopLoc_Location & theLoc )
    static

    Applies location to the given point and return result.

    Parameters
    thePntpoint to be transformed.
    theLoclocation to be applied.

    ◆ UVPoints()

    bool BRepMesh_ShapeTool::UVPoints ( const TopoDS_Edge & theEdge,
    const TopoDS_Face & theFace,
    gp_Pnt2d & theFirstPoint2d,
    gp_Pnt2d & theLastPoint2d,
    const bool isConsiderOrientation = false )
    static

    Gets the strict UV locations of the extremities of the edge using pcurve.


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