|
MKI_3D_CUBE (Basic Classes) New in Version 2026.1 |
www.CAD6.com |
|
This class contains the description of a 3D cube (rectangular parallelepiped).
C++ Syntaxclass MKI_3D_CUBE { public:
MKI_3D_POINT p1, p2;
MKI_3D_CUBE( void );
MKI_3D_CUBE* f_pThis );
const MKI_3D_POINT& f_rPoint );
const MKI_3D_POINT& f_rMin, const MKI_3D_POINT& f_rMax );
double f_dMinX, double f_dMinY, double f_dMinZ, double f_dMaxX, double f_dMaxY, double f_dMaxZ );
bool const MKI_3D_CUBE& f_rCube ) const;
bool const MKI_3D_CUBE& f_rCube ) const;
void SetZero( void );
void SetInvalid( void );
bool IsInvalid( void ) const;
bool IsValid( void ) const;
void Set( const MKI_3D_POINT& f_rPoint );
void Set( const MKI_3D_POINT& f_rMin, const MKI_3D_POINT& f_rMax );
void Set( double f_dMinX, double f_dMinY, double f_dMinZ, double f_dMaxX, double f_dMaxY, double f_dMaxZ );
void GetCenter( MKI_3D_POINT& f_rPoint ) const;
double GetCenterX( void ) const;
double GetCenterY( void ) const;
double GetCenterZ( void ) const;
double GetAbsSizeX( void ) const;
double GetAbsSizeY( void ) const;
double GetAbsSizeZ( void ) const;
void const MKI_3D_POINT& f_rPoint );
void const MKI_3D_CUBE& f_rCube );
bool const MKI_3D_CUBE& f_rCube ) const; };
Element Descriptionp1 [MKI_3D_POINT] Minimum X-, Y- and Z-coordinates of the cube. The coordinates are in [mm] relative to the page center. p2 [MKI_3D_POINT] Maximum X-, Y- and Z-coordinates of the cube. The coordinates are in [mm] relative to the page center.
Make sure that the values in p1 are always smaller than or equal to the values in p2.
MKD SyntaxUnused.
|
CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH