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++ Syntax

class MKI_3D_CUBE

{

  public:

 

  MKI_3D_POINT p1,

               p2;

 

  MKI_3D_CUBE( void );

 

  MKI_3D_CUBE(

 MKI_3D_CUBE* f_pThis );

 

  MKI_3D_CUBE(

 const MKI_3D_POINT& f_rPoint );

 

  MKI_3D_CUBE(

 const MKI_3D_POINT& f_rMin,

 const MKI_3D_POINT& f_rMax );

 

  MKI_3D_CUBE(

 double f_dMinX,

 double f_dMinY,

 double f_dMinZ,

 double f_dMaxX,

 double f_dMaxY,

 double f_dMaxZ );

 

  bool

  operator ==(

 const MKI_3D_CUBE& f_rCube ) const;

 

  bool

  operator !=(

 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

  Include(

 const MKI_3D_POINT& f_rPoint );

 

  void

  Include(

 const MKI_3D_CUBE& f_rCube );

 

  bool

  IsDisjoint(

 const MKI_3D_CUBE& f_rCube ) const;

};

 

Element Description

p1

[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 Syntax

Unused.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH