Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
jafar::model3d::Plane3D Class Reference

the equation of the plane is given in the Hessian form i.e. More...


Detailed Description

the equation of the plane is given in the Hessian form i.e.

uX+d = 0 where u : the Unitary Normal Vector of the plane d : the distance to the origine

Definition at line 19 of file plane3D.hpp.

#include <plane3D.hpp>

List of all members.

Public Member Functions

Plane3Doperator= (const Plane3D &srcPlane)
void setPlane (Point3D &p1, Point3D &p2, Point3D &p3)
 set the plane in the Hessian Form which pass par the three given points
void info ()
void clear ()
bool isBaseNormal (int &nType)
void setBaseNormal (int nType)
bool isVertical ()
double calculateCosDihedralAngle (Plane3D &plane3D_2)
 calculate the Dihedral angle between the tow planes
double signedDistance (const Point3D &p) const
bool isCoplanar (Plane3D &plane3D_2, double dist, double cosDihedral)
 test of coplanarity of the plane3d with the given one

Public Attributes

double u [3]
double d0

Member Function Documentation

calculate the Dihedral angle between the tow planes

The dihedral angle is the angle theta between two planes. The dihedral angle between the planes a_1x+b_1y+c_1z+d_1 = 0 (1) a_2x+b_2y+c_2z+d_2 = 0 (2)

which have normal vectors n_1==(a_1,b_1,c_1) and n_2==(a_2,b_2,c_2) is simply given via the dot product of the normals, costheta = n_1.n_2

see http://mathworld.wolfram.com/DihedralAngle.html

Definition at line 57 of file plane3D.hpp.

bool jafar::model3d::Plane3D::isCoplanar ( Plane3D plane3D_2,
double  dist,
double  cosDihedral 
)

test of coplanarity of the plane3d with the given one

the tow planes 3d are coplanar if

  • the CosDihedralAngle between them > given threshold
  • the difference of their distance to the origine < given threshold
void jafar::model3d::Plane3D::setPlane ( Point3D p1,
Point3D p2,
Point3D p3 
)

set the plane in the Hessian Form which pass par the three given points

Note:
the three points MUST not be coliear no test on that is given, but it is the resposability of the user

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1
LAAS-CNRS