C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
+ Collaboration diagram for Names:

Classes

struct  NameIntersectionInfo
 Name with hits counter. More...
 
class  MbNamedContoursTree
 The tree of named contours. More...
 
class  SimpleNameArray
 Set of simple names. More...
 
struct  MbIdArr
 Truncated set of simple names. More...
 
class  MbName
 A name of an object. More...
 
class  MbNamePair
 Name of object and its duplicate. More...
 
class  MbNamePairList
 Table of names correspondence. More...
 
class  MbNameMaker
 Name generator. More...
 
class  MbSNameMaker
 Generator of names with additions to name. More...
 
class  MbPath
 Path to component. More...
 
class  MbNameVersion
 Version of a name. More...
 

Functions

int PointCompare3D (const MbCartPoint3D &p1, const MbCartPoint3D &p2, double precision=Math::region)
 Points comparison in space. More...
 
void SetShellNames (const RPArray< MbCurveEdge > &edges, const RPArray< MbFace > &faces, const MbSNameMaker &nameMaker, bool processVertexes)
 Set names for elements of shell. More...
 
void SetFacesNames (const RPArray< MbFace > &faces, const MbSNameMaker &nameMaker, bool processVertexes)
 Set names for elements of shell. More...
 
void SetFacesNames (const c3d::FacesVector &faces, const MbSNameMaker &nameMaker, bool processVertexes)
 Set names for elements of shell. More...
 
void SetShellNames (MbFaceShell &shell, const MbSNameMaker &nameMaker)
 Set names for elements of shell. More...
 
bool SetItemNames (MbItem &item, const MbSNameMaker &nameMaker, bool clearNames)
 Set names for elements of object. More...
 
bool CheckShellNames (const RPArray< const MbFaceShell > &shells, SArray< NameIntersectionInfo > &infos)
 Check names for coincidence. More...
 
void CombineNames (MbCurveEdge &edge1, const MbCurveEdge &edge2, const MbSNameMaker &snMaker)
 Select name for united edges. More...
 
MbContourFindBigContour (const RPArray< MbContour > &contours)
 Get the biggest contour. More...
 
template<class IntegralType >
void SwapIT (IntegralType &a, IntegralType &b)
 Swap. More...
 
int MbMemDefNameCompare (const MbName &n1, const MbName &n2)
 Name comparison function. More...
 
int MbDefNameCompare (const MbName &n1, const MbName &n2)
 Name comparison function. More...
 
template<class SimpleNameVector >
bool IsEqualPaths (const SimpleNameVector &path1, const SimpleNameVector &path2)
 Compare paths as array of identifiers. More...
 

Variables

constexpr size_t sizeofSimpleName = sizeof( SimpleName )
 Size of SimpleName. More...
 

Detailed Description

Function Documentation

◆ PointCompare3D()

int PointCompare3D ( const MbCartPoint3D p1,
const MbCartPoint3D p2,
double  precision = Math::region 
)
inline

Points comparison in space.

Points comparison with precision Math::region: in the first coordinate, in the second coordinate, in the third coordinate.

Parameters
[in]p1- An first point.
[in]p2- Вторая точка.
[in]precision- The precision of comparison.
Returns
Returns: -1 -if p1 < p2; +1 -if p1 > p2; 0 -if p1 == p2.

◆ SetShellNames() [1/2]

void SetShellNames ( const RPArray< MbCurveEdge > &  edges,
const RPArray< MbFace > &  faces,
const MbSNameMaker nameMaker,
bool  processVertexes 
)

Set names for elements of shell.

Set names for elements of shell: for faces, edges, vertices.

Parameters
[in]edges- An array of edges.
[in]faces- An array of faces.
[in]nameMaker- An object for naming the new objects.
[in]processVertexes- Whether to set names to vertices.

◆ SetFacesNames() [1/2]

void SetFacesNames ( const RPArray< MbFace > &  faces,
const MbSNameMaker nameMaker,
bool  processVertexes 
)

Set names for elements of shell.

Set names for faces of shell.

Parameters
[in]faces- An array of faces.
[in]nameMaker- An object for naming the new objects.
[in]processVertexes- Whether to set names to vertices.

◆ SetFacesNames() [2/2]

void SetFacesNames ( const c3d::FacesVector &  faces,
const MbSNameMaker nameMaker,
bool  processVertexes 
)

Set names for elements of shell.

Set names for faces of shell.

Parameters
[in]faces- An array of faces.
[in]nameMaker- An object for naming the new objects.
[in]processVertexes- Whether to set names to vertices.

◆ SetShellNames() [2/2]

void SetShellNames ( MbFaceShell shell,
const MbSNameMaker nameMaker 
)

Set names for elements of shell.

Set names for elements of shell: for faces, edges, vertices.

Parameters
[in]shell- A shell.
[in]nameMaker- An object for naming the new objects.

◆ SetItemNames()

bool SetItemNames ( MbItem item,
const MbSNameMaker nameMaker,
bool  clearNames 
)

Set names for elements of object.

Set names for elements of object: faces, edges and vertices of an solid, edges and vertices of a wireframe, vertices of a point frame.

Parameters
[in]item- A solid, wire frame, point frame, instance.
[in]nameMaker- An object for naming the new objects.
[in]clearNames- Clear all names of object elements beforehand.
Returns
Returns true if naming operation was performed.

◆ CheckShellNames()

bool CheckShellNames ( const RPArray< const MbFaceShell > &  shells,
SArray< NameIntersectionInfo > &  infos 
)

Check names for coincidence.

Check names of shell's components for coincidence.

Parameters
[in]shells- An array of checked shells.
[out]infos- Array of coincident names with hits counter.
Returns
Returns true if no coincident names found.

◆ CombineNames()

void CombineNames ( MbCurveEdge edge1,
const MbCurveEdge edge2,
const MbSNameMaker snMaker 
)

Select name for united edges.

Select the most suitable name while uniting two edges,
the new name will be set to the first edge.

Parameters
[in,out]edge1- The first edge.
[in]edge2- The second edge.
[in]snMaker- Names maker with a version.

◆ FindBigContour()

MbContour* FindBigContour ( const RPArray< MbContour > &  contours)

Get the biggest contour.

Get the biggest contour by bounding box diagonal length.

Returns
Returns pointer to the found contour or nullptr.

◆ SwapIT()

template<class IntegralType >
void SwapIT ( IntegralType &  a,
IntegralType &  b 
)
inline

Swap.

Swap.

◆ MbMemDefNameCompare()

int MbMemDefNameCompare ( const MbName n1,
const MbName n2 
)
inline

Name comparison function.

Name comparison function returns:
-1, if n1 < n2;
0, if n1 == n2;
+1, if n1 > n2;

◆ MbDefNameCompare()

int MbDefNameCompare ( const MbName n1,
const MbName n2 
)
inline

Name comparison function.

Name comparison function for work with sorted structures.

◆ IsEqualPaths()

template<class SimpleNameVector >
bool IsEqualPaths ( const SimpleNameVector &  path1,
const SimpleNameVector &  path2 
)

Compare paths as array of identifiers.

Compare paths as array of identifiers.

Returns
Returns true if paths is coincident.

Variable Documentation

◆ sizeofSimpleName

constexpr size_t sizeofSimpleName = sizeof( SimpleName )
constexpr

Size of SimpleName.

Size of SimpleName.