Open CASCADE Technology 7.8.2.dev
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 Standard_Real 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, Standard_Real &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, 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 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 Handle< Poly_PolygonOnTriangulation > &thePolygon, const 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 Handle< Poly_Polygon3D > &thePolygon)
 Updates the given edge by the given tessellated representation.
 
static void UpdateEdge (const TopoDS_Edge &theEdge, const Handle< Poly_PolygonOnTriangulation > &thePolygon1, const Handle< Poly_PolygonOnTriangulation > &thePolygon2, const 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 Standard_Boolean UVPoints (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace, gp_Pnt2d &theFirstPoint2d, gp_Pnt2d &theLastPoint2d, const Standard_Boolean isConsiderOrientation=Standard_False)
 Gets the strict UV locations of the extremities of the edge using pcurve.
 
static Standard_Boolean Range (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace, Handle< Geom2d_Curve > &thePCurve, Standard_Real &theFirstParam, Standard_Real &theLastParam, const Standard_Boolean isConsiderOrientation=Standard_False)
 Gets the parametric range of the given edge on the given face.
 
static Standard_Boolean Range (const TopoDS_Edge &theEdge, Handle< Geom_Curve > &theCurve, Standard_Real &theFirstParam, Standard_Real &theLastParam, const Standard_Boolean isConsiderOrientation=Standard_False)
 Gets the 3d range of the given edge.
 
- Static Public Member Functions inherited from Standard_Transient
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

- Public Types inherited from Standard_Transient
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_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
Standard_Boolean 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.
 
Standard_Boolean IsKind (const Standard_CString 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_TransientThis () 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.
 
Standard_Integer GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object.
 
Standard_Integer DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value.
 
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()

static void BRepMesh_ShapeTool::AddInFace ( const TopoDS_Face & theFace,
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()

static void BRepMesh_ShapeTool::BoxMaxDimension ( const Bnd_Box & theBox,
Standard_Real & 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()

static 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()

static Standard_Real 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]

static void BRepMesh_ShapeTool::NullifyEdge ( const TopoDS_Edge & theEdge,
const 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]

static 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()

static 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]

static Standard_Boolean BRepMesh_ShapeTool::Range ( const TopoDS_Edge & theEdge,
const TopoDS_Face & theFace,
Handle< Geom2d_Curve > & thePCurve,
Standard_Real & theFirstParam,
Standard_Real & theLastParam,
const Standard_Boolean isConsiderOrientation = Standard_False )
static

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

◆ Range() [2/2]

static Standard_Boolean BRepMesh_ShapeTool::Range ( const TopoDS_Edge & theEdge,
Handle< Geom_Curve > & theCurve,
Standard_Real & theFirstParam,
Standard_Real & theLastParam,
const Standard_Boolean isConsiderOrientation = Standard_False )
static

Gets the 3d range of the given edge.

◆ UpdateEdge() [1/3]

static void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
const 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]

static void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
const Handle< Poly_PolygonOnTriangulation > & thePolygon,
const 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]

static void BRepMesh_ShapeTool::UpdateEdge ( const TopoDS_Edge & theEdge,
const Handle< Poly_PolygonOnTriangulation > & thePolygon1,
const Handle< Poly_PolygonOnTriangulation > & thePolygon2,
const 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()

static 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()

static Standard_Boolean BRepMesh_ShapeTool::UVPoints ( const TopoDS_Edge & theEdge,
const TopoDS_Face & theFace,
gp_Pnt2d & theFirstPoint2d,
gp_Pnt2d & theLastPoint2d,
const Standard_Boolean isConsiderOrientation = Standard_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: