C3D Toolkit
Kernel  117958, Vision  2.7.6.12

Truncating elements. More...
#include <cr_split_data.h>
Public Member Functions  
MbSplitData ()  
Constructor.  
MbSplitData (const MbPlacement3D &pl, MbeSenseValue dirSense, const MbContour &item, bool same)  
Constructor by twodimensional contour in the local coordinate system.  
MbSplitData (const MbPlacement3D &pl, const MbVector3D &dir, const MbContour &item, bool same)  
Constructor by twodimensional contour in the local coordinate system.  
template<class PlaneContoursVector >  
MbSplitData (const MbPlacement3D &pl, MbeSenseValue dirSense, const PlaneContoursVector &items, bool same)  
Constructor by twodimensional contours in the local coordinate system.  
template<class PlaneContoursVector >  
MbSplitData (const MbPlacement3D &pl, const MbVector3D &dir, const PlaneContoursVector &items, bool same)  
Constructor by twodimensional contours in the local coordinate system.  
MbSplitData (const c3d::ConstSpaceCurvesSPtrVector &items, bool same)  
Constructor by spatial curves.  
MbSplitData (const c3d::ConstSpaceCurvesVector &items, bool same)  
Constructor by spatial curves.  
MbSplitData (const MbSurface &item, bool same)  
Constructor by a surface.  
MbSplitData (const c3d::ConstSurfacesSPtrVector &items, bool same)  
Constructor by surfaces.  
MbSplitData (const c3d::ConstSurfacesVector &items, bool same)  
Constructor by surfaces.  
MbSplitData (const MbSolid &solid, bool same, bool keepShell)  
Constructor by a solid.  
MbSplitData (const MbSplitData &, bool same, MbRegDuplicate *iReg)  
Copy constructor with registrator of copying.  
~MbSplitData ()  
Destructor.  
bool  InitPlaneContour (const MbPlacement3D &pl, MbeSenseValue dirSense, const MbContour &item, bool same) 
Initialize by twodimensional contour in the local coordinate system.  
bool  InitPlaneContour (const MbPlacement3D &pl, const MbVector3D &dir, const MbContour &item, bool same) 
Initialize by twodimensional contour in the local coordinate system.  
template<class PlaneContoursVector >  
bool  InitPlaneContours (const MbPlacement3D &pl, MbeSenseValue dirSense, const PlaneContoursVector &items, bool same) 
Initialize by twodimensional contours in the local coordinate system.  
template<class PlaneContoursVector >  
bool  InitPlaneContours (const MbPlacement3D &pl, const MbVector3D &dir, const PlaneContoursVector &items, bool same) 
Initialize by twodimensional contours in the local coordinate system.  
template<class SpaceCurvesVector >  
bool  InitSpaceCurves (const SpaceCurvesVector &items, bool same) 
Initialize by spatial curves.  
template<class SurfacesVector >  
bool  InitSurfaces (const SurfacesVector &items, bool same) 
Initialize by surfaces.  
bool  InitSolid (const MbSolid &solid, bool same, bool keepShell) 
Initialize by a solid.  
template<class CreatorsVector >  
bool  InitSolid (const CreatorsVector &solidCreators, bool sameCreators) 
Initialize by solid creators.  
bool  SetEqual (const MbSplitData &) 
Make equal.  
bool  IsSimilar (const MbSplitData &) const 
Determine whether the objects are similar.  
void  Transform (const MbMatrix3D &, MbRegTransform *=nullptr) 
Transform element according to the matrix.  
void  Move (const MbVector3D &, MbRegTransform *=nullptr) 
Shift by a vector.  
void  Rotate (const MbAxis3D &, double angle, MbRegTransform *=nullptr) 
Rotate about an axis.  
bool  IsEmpty () const 
Are the objects absent?  
bool  IsSame (const MbSplitData &, double accuracy) const 
Determine whether an object is equal?  
Access to a sketch.  
size_t  GetSketchCurvesCount () const 
Get number of twodimensional curves.  
const MbPlacement3D &  GetSketchPlace () const 
Get the local coordinate system of twodimensional curves.  
MbPlacement3D &  SetSketchPlace () 
Get the local coordinate system of twodimensional curves.  
const MbVector3D &  GetSketchDirection () const 
Get the extrusion direction vector of twodimensional curves.  
MbVector3D &  SetSketchDirection () 
Get the extrusion direction vector of twodimensional curves.  
const MbeSenseValue  GetSketchSense () const 
Get extrusion direction of twodimensional curves.  
MbeSenseValue &  SetSketchSense () 
Get extrusion direction of twodimensional curves.  
void  SetSketchSense (MbeSenseValue zdir) 
Set extrusion direction of twodimensional curves.  
const MbContour *  GetSketchCurve (size_t k) const 
Get twodimensional curve by index.  
MbContour *  SetSketchCurve (size_t k) 
Get twodimensional curve by index.  
template<class PlaneContoursVector >  
void  GetSketchCurves (PlaneContoursVector &curvs) const 
Get all twodimensional curves.  
bool  DeleteSketchCurve (size_t k) 
Delete twodimensional curve by index.  
Access to spatial curves.  
size_t  GetSpaceCurvesCount () const 
Get number of spatial curves.  
const MbCurve3D *  GetSpaceCurve (size_t k) const 
Get a spatial curve by index.  
MbCurve3D *  SetSpaceCurve (size_t k) 
Get a spatial curve by index.  
template<class SpaceCurvesVector >  
void  GetSpaceCurves (SpaceCurvesVector &curvs) const 
Get all spatial curves.  
bool  SetSpaceCurve (const MbCurve3D &curve, size_t k) 
Set spatial curve by index.  
Access to surfaces.  
size_t  GetSurfacesCount () const 
Get number of surfaces.  
const MbSurface *  GetSurface (size_t k) const 
Get a surface by index.  
MbSurface *  SetSurface (size_t k) 
Get a surface by index.  
template<class SurfacesVector >  
void  GetSurfaces (SurfacesVector &surfs) const 
Get all surfaces.  
bool  SetSurface (const MbSurface &surface, size_t k) 
Set a surface by index.  
Access to creators.  
size_t  GetCreatorsCount () const 
Get number of solid creators.  
const MbCreator *  GetCreator (size_t k) const 
Get constructor by index.  
MbCreator *  SetCreator (size_t k) 
Get constructor by index.  
template<class CreatorsVector >  
void  GetCreators (CreatorsVector &crs) const 
Get all creators.  
template<class CreatorsVector >  
void  GetCreatorsCopies (CreatorsVector &crs) const 
Get all creators.  
template<class CreatorsVector >  
void  SetCreators (CreatorsVector &crs) 
Get all creators.  
const MbFaceShell *  GetSolidShell () const 
Get stored shell.  
MbFaceShell *  CreateShell (MbeCopyMode copyMode) 
Create a shell by creators (solidShell remains unchanged).  
bool  UpdateShell (MbeCopyMode copyMode) 
Create a shell by creators (solidShell remains unchanged).  
void  DeleteItems () 
Delete data.  
void  ReadItems (reader &) 
Read data.  
void  WriteItems (writer &) const 
Write data.  
void  GetProperties (MbProperties &) 
Get properties of the object.  
void  SetProperties (const MbProperties &) 
Set properties of the object.  
void  GetBasisItems (RPArray< MbSpaceItem > &) 
Get the base objects.  
void  GetBasisPoints (MbControlData3D &) const 
Get control points of object.  
void  SetBasisPoints (const MbControlData3D &) 
Change the object by control points.  
Public Member Functions inherited from MbRefItem  
virtual MbeRefType  RefType () const 
Registration type (for copying, duplication).  
refcount_t  GetUseCount () const 
Get count of references (get count of owners of an object).  
refcount_t  AddRef () const 
Increase count of references by one.  
refcount_t  DecRef () const 
Decrease count of references by one.  
refcount_t  Release () const 
Decrease count of references by one and if count of references became zero, then remove itself.  
Additional Inherited Members  
Protected Member Functions inherited from MbRefItem  
MbRefItem ()  
Constructor without parameters.  
Truncating elements.
Truncating elements are used for splitting faces into parts and truncation of shells. Truncating can be performed by twodimensional curves located in the XY plane of the local coordinate system, by threedimensional curves, surfaces and shells. Truncating elements are used in the creator of truncated shell MbTruncatedShell and in the creator of shell with face splitting MbSplitShell.