C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
mb_thread.h File Reference

Thread definition. More...

#include <legend.h>
#include <mb_placement3d.h>
#include <mb_cube.h>
#include <mb_matrix.h>
#include <surface.h>
#include <topology.h>
#include <lump.h>
#include <solid.h>
#include <name_item.h>
#include <iterator>
#include <set>
#include <vector>

Classes

struct  MbThreadedJointCheckParameters
 Threaded joint check parameters. More...
 
class  MbThread
 Thread. More...
 

Enumerations

enum  MbeThrMapType { tmt_CompleteView = 0 , tmt_CuttedView , tmt_SectionView }
 Mapping type. More...
 
enum  MbeThrState { ts_NotChanged = 0 , ts_Changed , ts_Degenerated }
 Thread state. More...
 
enum  MbeThrAdapt {
  ta_UsingNothing = 0 , ta_UsingGabarit , ta_UsingSurfaces , ta_UsingSolid ,
  ta_TypesCount
}
 Method of thread fitting (adapting). More...
 
enum  MbeThreadedJointCheckErrors {
  tjc_NoErrors = 0 , tjc_SameThread = 1 , tjc_WrongThreadParameters = 2 , tjc_NormalsMismatch = 3 ,
  tjc_RotationsMismatch = 5 , tjc_AngularMismatch = 6 , tjc_AxesNotCollinear = 7 , tjc_DepthOverlapMismatch = 8 ,
  tjc_LengthOverlapMismatch = 9 , tjc_PositionsCount = 10
}
 Threaded joint check errors. More...
 

Functions

template<class ThreadsVector >
bool CheckThreads (ThreadsVector &threads, const MbPlacement3D *placeSec, bool checkThreadNames, double angleEps=Math::angleRegion)
 Delete incorrect threads. More...
 
bool GetThreadEdgeCentre (const MbCurveEdge &edge, MbCartPoint3D &pnt)
 Get a central point. More...
 
bool CalculateThreadLimits (const MbFace &threadFace, const MbAxis3D &threadAxis, const MbFace &face, MbVector3D &threadDir, MbCartPoint3D &facePnt1, MbCartPoint3D &facePnt2, MbCartPoint3D &axisPnt1, MbCartPoint3D &axisPnt2, double dr=0.0, bool findCommonEdges=true)
 Find the boundary point of the thread. More...
 

Detailed Description

Thread definition.