SMESH_MAT2d::MedialAxis Class Reference

Medial axis (MA) is defined as the loci of centres of locally maximal balls inside 2D representation of a face. This class implements a piecewise approximation of MA. More...

#include <SMESH_MAT2d.hxx>

Public Member Functions

const BoundarygetBoundary () const
 
const BranchgetBranch (size_t i) const
 Returns the i-th branch. More...
 
const std::vector< const BranchEnd * > & getBranchPoints () const
 
void getPoints (const Branch *branch, std::vector< gp_XY > &points) const
 Return UVs of ends of MA edges of a branch. More...
 
Adaptor3d_Curvemake3DCurve (const Branch &branch) const
 Creates a 3d curve corresponding to a Branch. More...
 
 MedialAxis (const TopoDS_Face &face, const std::vector< TopoDS_Edge > &edges, const double minSegLen, const bool ignoreCorners=false)
 MedialAxis constructor. More...
 
std::size_t nbBranches () const
 

Detailed Description

Medial axis (MA) is defined as the loci of centres of locally maximal balls inside 2D representation of a face. This class implements a piecewise approximation of MA.

Constructor & Destructor Documentation

◆ MedialAxis()

SMESH_MAT2d::MedialAxis::MedialAxis ( const TopoDS_Face &  face,
const std::vector< TopoDS_Edge > &  edges,
const double  minSegLen,
const bool  ignoreCorners = false 
)

MedialAxis constructor.

Parameters
[in]face- a face to create MA for
[in]edges- edges of the face (possibly not all) on the order they encounter in the face boundary.
[in]minSegLen- minimal length of a mesh segment used to discretize the edges. It is used to define precision of MA approximation

Member Function Documentation

◆ getBoundary()

const Boundary & SMESH_MAT2d::MedialAxis::getBoundary ( ) const

◆ getBranch()

const SMESH_MAT2d::Branch * SMESH_MAT2d::MedialAxis::getBranch ( size_t  i) const

Returns the i-th branch.

◆ getBranchPoints()

const std::vector< const BranchEnd * > & SMESH_MAT2d::MedialAxis::getBranchPoints ( ) const

◆ getPoints()

void SMESH_MAT2d::MedialAxis::getPoints ( const Branch branch,
std::vector< gp_XY > &  points 
) const

Return UVs of ends of MA edges of a branch.

References SMESH_MAT2d::Branch::getPoints().

◆ make3DCurve()

Adaptor3d_Curve * SMESH_MAT2d::MedialAxis::make3DCurve ( const Branch branch) const

Creates a 3d curve corresponding to a Branch.

Parameters
[in]branch- the Branch
Returns
Adaptor3d_Curve* - the new curve the caller is to delete

References SMESH_MAT2d::Branch::getPoints().

◆ nbBranches()

std::size_t SMESH_MAT2d::MedialAxis::nbBranches ( ) const

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