MKI_3D_PLANE (Basic Classes) New in Version 2026.1

www.CAD6.com

This class contains the description of a 3D plane.

 

C++ Syntax

class MKI_3D_PLANE

{

  public:

 

  MKI_3D_POINT  m_cPoint;

  MKI_3D_VECTOR m_cVector1,

                m_cVector2;

  double m_dValueA,

         m_dValueB,

         m_dValueC,

         m_dValueD;

 

  MKI_3D_PLANE( void );

 

  MKI_3D_PLANE(

 MKI_3D_PLANE* f_pThis );

 

  void

  SetZero( void );

 

  bool

  Swap( void );

 

  double

  Distance(

 const MKI_3D_POINT& f_rPoint ) const;

 

  void

  Set(

 const MKI_3D_POINT& f_rPoint1,

 const MKI_3D_POINT& f_rPoint2,

 const MKI_3D_POINT& f_rPoint3 );

 

  void

  Set(

 const MKI_3D_POINT& f_rPoint,

 const MKI_3D_VECTOR& f_rVector1,

 const MKI_3D_VECTOR& f_rVector2 );

 

  void

  Set(

 const MKI_3D_MATRIX& f_rMatrix );

 

  void

  Init( void );

 

  void

  Invert( void );

 

  bool

  Normal(

 MKI_3D_VECTOR& f_rVector ) const;

 

  double

  Intersect(

 const MKI_3D_EDGE& f_rEdge,

 MKI_3D_POINT& f_rResult ) const;

 

  double

  Intersect(

 const MKI_3D_POINT& f_rPoint1,

 const MKI_3D_POINT& f_rPoint2,

 MKI_3D_POINT& f_rResult ) const;

 

  bool

  Intersect(

 const MKI_3D_PLANE& f_rPlane,

 MKI_3D_EDGE& f_rResult ) const;

 

  double

  Angle(

 const MKI_3D_VECTOR& f_rVector1,

 const MKI_3D_VECTOR& f_rVector2 ) const;

};

 

Element Description

m_cPoint

[MKI_3D_POINT] X-, Y- and Z-coordinates of the start point of the plane. The coordinates are in [mm] relative to the page center.

m_cVector1

[MKI_3D_VECTOR] X-, Y- and Z-components of the plane's first vector. The components are in [mm].

m_cVector2

[MKI_3D_VECTOR] X-, Y- and Z-components of the plane's second vector. The components are in [mm].

m_dValueA

m_dValueB

m_dValueC

m_dValueD

[double] Coefficients of the plane's equation. Will only be set correctly if point and vectors were set by means of a member function or its Init() was called.

 

MKD Syntax

Unused.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH