C3D Kernel  104598
Classes | Functions | Variables
Names
Algorithm Objects
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)
 Points comparison in space.
void SetShellNames (RPArray< MbCurveEdge > &edges, const RPArray< MbFace > &faces, const MbSNameMaker &nameMaker, bool processVertexes)
 Set names for elements of shell.
void SetFacesNames (const RPArray< MbFace > &faces, const MbSNameMaker &nameMaker, bool processVertexes)
 Set names for elements of shell.
void SetShellNames (MbFaceShell &shell, const MbSNameMaker &nameMaker)
 Set names for elements of shell.
bool CheckShellNames (const RPArray< const MbFaceShell > &shells, SArray< NameIntersectionInfo > &infos)
 Check names for coincidence.
void CombineNames (MbCurveEdge &edge1, const MbCurveEdge &edge2, VERSION version)
 Select name for united edges.
MbContourFindBigContour (const RPArray< MbContour > &contours)
 Get the biggest contour.
template<class IntegralType >
void SwapIT (IntegralType &a, IntegralType &b)
 Swap.
int MbMemDefNameCompare (const MbName &n1, const MbName &n2)
 Name comparison function.
int MbDefNameCompare (const MbName &n1, const MbName &n2)
 Name comparison function.
bool IsEqualPaths (const SArray< SimpleName > &path1, const SArray< SimpleName > &path2)
 Compare paths as array of identifiers.

Variables

const size_t sizeofSimpleName = sizeof( SimpleName )
 Size of SimpleName.

Function Documentation

int PointCompare3D ( const MbCartPoint3D p1,
const MbCartPoint3D p2 
) [inline]

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- Вторая точка.
Returns:
Returns: -1 -if p1 < p2; +1 -if p1 > p2; 0 -if p1 == p2.
void SetShellNames ( RPArray< MbCurveEdge > &  edges,
const RPArray< MbFace > &  faces,
const MbSNameMaker nameMaker,
bool  processVertexes 
)

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.
void SetFacesNames ( const RPArray< MbFace > &  faces,
const MbSNameMaker nameMaker,
bool  processVertexes 
)

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.
void SetShellNames ( MbFaceShell shell,
const MbSNameMaker nameMaker 
) [inline]

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

Parameters:
[in]shell- A shell.
[in]nameMaker- An object for naming the new objects.
bool CheckShellNames ( const RPArray< const MbFaceShell > &  shells,
SArray< NameIntersectionInfo > &  infos 
)

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.
void CombineNames ( MbCurveEdge edge1,
const MbCurveEdge edge2,
VERSION  version 
)

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]version- The version.
MbContour* FindBigContour ( const RPArray< MbContour > &  contours)

Get the biggest contour by bounding box diagonal length.

Returns:
Returns pointer to the found contour or NULL.
template<class IntegralType >
void SwapIT ( IntegralType &  a,
IntegralType &  b 
) [inline]

Swap.

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

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

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

Name comparison function for work with sorted structures.

bool IsEqualPaths ( const SArray< SimpleName > &  path1,
const SArray< SimpleName > &  path2 
)

Compare paths as array of identifiers.

Returns:
Returns true if paths is coincident.

Variable Documentation

const size_t sizeofSimpleName = sizeof( SimpleName )

Size of SimpleName.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines