53 #ifndef ACG_QUADNODE_HH 54 #define ACG_QUADNODE_HH 58 #include "BaseNode.hh" 74 typedef std::vector<ACG::Vec3f> PointVector;
77 const std::string& _name=
"<QuadNode>" );
85 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax);
94 point_.push_back( _p0 );
95 point_.push_back( _p1 );
96 point_.push_back( _p2 );
97 point_.push_back( _p3 );
100 if ( n.
norm() > 0.00001 )
103 n =
Vec3f( 0, 0, 0 );
104 normal_.push_back( n );
115 enum FaceMode { FACE_NORMALS, FACE_COLORS, PER_VERTEX };
117 void draw_vertices();
119 void draw_wireframe();
131 #endif // ACG_QUADNODE_HH defined Namespace providing different geometric functions concerning angles.
auto norm() const -> decltype(std::sqrt(std::declval< VectorT< S, DIM >>().sqrnorm()))
compute euclidean norm
VectorT< float, 3 > Vec3f
auto normalize() -> decltype(*this/=std::declval< VectorT< S, DIM >>().norm())
PickTarget
What target to use for picking.