|
C3D Toolkit
Kernel - 118057, Vision - 2.14.7.1821
|
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... | |
| MbContour * | FindBigContour (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... | |
|
inline |
Points comparison in space.
Points comparison with precision Math::region: in the first coordinate, in the second coordinate, in the third coordinate.
| [in] | p1 | - An first point. |
| [in] | p2 | - Вторая точка. |
| [in] | precision | - The precision of comparison. |
| 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.
| [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 elements of shell.
Set names for faces of shell.
| [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 c3d::FacesVector & | faces, |
| const MbSNameMaker & | nameMaker, | ||
| bool | processVertexes | ||
| ) |
Set names for elements of shell.
Set names for faces of shell.
| [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 | ||
| ) |
Set names for elements of shell.
Set names for elements of shell: for faces, edges, vertices.
| [in] | shell | - A shell. |
| [in] | nameMaker | - An object for naming the new objects. |
| 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.
| [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. |
| bool CheckShellNames | ( | const RPArray< const MbFaceShell > & | shells, |
| SArray< NameIntersectionInfo > & | infos | ||
| ) |
Check names for coincidence.
Check names of shell's components for coincidence.
| [in] | shells | - An array of checked shells. |
| [out] | infos | - Array of coincident names with hits counter. |
| 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.
| [in,out] | edge1 | - The first edge. |
| [in] | edge2 | - The second edge. |
| [in] | snMaker | - Names maker with a version. |
Get the biggest contour.
Get the biggest contour by bounding box diagonal length.
|
inline |
Swap.
Swap.
Name comparison function.
Name comparison function returns:
-1, if n1 < n2;
0, if n1 == n2;
+1, if n1 > n2;
Name comparison function.
Name comparison function for work with sorted structures.
| bool IsEqualPaths | ( | const SimpleNameVector & | path1, |
| const SimpleNameVector & | path2 | ||
| ) |
Compare paths as array of identifiers.
Compare paths as array of identifiers.
|
constexpr |
Size of SimpleName.
Size of SimpleName.