Open CASCADE Technology  7.3.0
Static Public Member Functions
BRepMesh_ShapeTool Class Reference

#include <BRepMesh_ShapeTool.hxx>

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. More...
 
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. More...
 
static Standard_Real RelativeEdgeDeflection (const TopoDS_Edge &theEdge, const Standard_Real theDeflection, const Standard_Real theMaxShapeSize, Standard_Real &theAdjustmentCoefficient)
 Returns relative deflection for edge with respect to shape size. More...
 
static gp_XY FindUV (const Standard_Integer theIndexOfPnt3d, const gp_Pnt2d &thePnt2d, const Standard_Real theMinDistance, const Handle< BRepMesh_FaceAttribute > &theFaceAttribute)
 Checks 2d representations of 3d point with the given index for equality to avoid duplications. More...
 
static void AddInFace (const TopoDS_Face &theFace, Handle< Poly_Triangulation > &theTriangulation)
 Stores the given triangulation into the given face. More...
 
static void NullifyFace (const TopoDS_Face &theFace)
 Nullifies triangulation stored in the face. More...
 
static void NullifyEdge (const TopoDS_Edge &theEdge, const Handle< Poly_Triangulation > &theTriangulation, const TopLoc_Location &theLocation)
 Nullifies polygon on triangulation stored in the edge. More...
 
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. More...
 
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. More...
 
static gp_Pnt UseLocation (const gp_Pnt &thePnt, const TopLoc_Location &theLoc)
 Applies location to the given point and return result. More...
 
static Standard_Boolean IsDegenerated (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
 Checks is the given edge degenerated. Checks geometrical parameters in case if IsDegenerated flag is not set. More...
 

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.

◆ FindUV()

static gp_XY BRepMesh_ShapeTool::FindUV ( const Standard_Integer  theIndexOfPnt3d,
const gp_Pnt2d thePnt2d,
const Standard_Real  theMinDistance,
const Handle< BRepMesh_FaceAttribute > &  theFaceAttribute 
)
static

Checks 2d representations of 3d point with the given index for equality to avoid duplications.

Parameters
theIndexOfPnt3dindex of 3d point with which 2d representation should be associated.
thePnt2d2d representation of the point with the given index.
theMinDistanceminimum distance between vertices regarding which they could be treated as distinct ones.
theFaceAttributeattributes contining data calculated according to face geomtry and define limits of face in parametric space. If defined, will be used instead of surface parameter.
theLocation2dMapmap of 2d representations of 3d points.
Returns
given 2d point in case if 3d poind does not alredy have the similar representation, otherwice 2d point corresponding to existing representation will be returned.

◆ IsDegenerated()

static Standard_Boolean BRepMesh_ShapeTool::IsDegenerated ( const TopoDS_Edge theEdge,
const TopoDS_Face theFace 
)
static

Checks is the given edge degenerated. Checks geometrical parameters in case if IsDegenerated flag is not set.

Parameters
theEdgeedge to be checked.
theFaceface within which parametric space edge will be checked for geometrical degenerativity.

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

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.

◆ 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.

◆ RelativeEdgeDeflection()

static Standard_Real BRepMesh_ShapeTool::RelativeEdgeDeflection ( const TopoDS_Edge theEdge,
const Standard_Real  theDeflection,
const Standard_Real  theMaxShapeSize,
Standard_Real theAdjustmentCoefficient 
)
static

Returns relative deflection for edge with respect to shape size.

Parameters
theEdgeedge for which relative deflection should be computed.
theDeflectionabsolute deflection.
theMaxShapeSizemaximum size of a shape.
theAdjustmentCoefficientcoefficient of adjustment between maximum size of shape and calculated relative deflection.
Returns
relative deflection for the edge.

◆ UpdateEdge() [1/2]

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() [2/2]

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.

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