Include :
- a plane3d aggiunto metodo per calcolo piano dati tre punti.
This commit is contained in:
@@ -38,6 +38,16 @@ class Plane3d
|
||||
m_dDist = ( ptP - ORIG) * m_vtN ;
|
||||
return true ;
|
||||
}
|
||||
bool Set( const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptP3)
|
||||
{ if ( AreSamePointApprox( ptP1, ptP2) ||
|
||||
AreSamePointApprox( ptP2, ptP3) ||
|
||||
AreSamePointApprox( ptP3, ptP1)) {
|
||||
m_vtN = V_NULL ;
|
||||
return false ;
|
||||
}
|
||||
Vector3d vtN = ( ptP2 - ptP1) ^ ( ptP3 - ptP2) ;
|
||||
return Set( ptP1, vtN) ;
|
||||
}
|
||||
void Reset( void)
|
||||
{ m_vtN = V_NULL ;
|
||||
m_dDist = 0 ;
|
||||
|
||||
Reference in New Issue
Block a user