59 #ifndef ACG_QUADNODE_HH 60 #define ACG_QUADNODE_HH 64 #include "BaseNode.hh" 80 typedef std::vector<ACG::Vec3f> PointVector;
83 std::string _name=
"<QuadNode>" );
91 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax);
100 point_.push_back( _p0 );
101 point_.push_back( _p1 );
102 point_.push_back( _p2 );
103 point_.push_back( _p3 );
106 if ( n.
norm() > 0.00001 )
109 n =
Vec3f( 0, 0, 0 );
110 normal_.push_back( n );
121 enum FaceMode { FACE_NORMALS, FACE_COLORS, PER_VERTEX };
123 void draw_vertices();
125 void draw_wireframe();
137 #endif // ACG_QUADNODE_HH defined
PickTarget
What target to use for picking.
VectorT< float, 3 > Vec3f
Namespace providing different geometric functions concerning angles.
auto normalize() -> decltype(*this/=std::declval< VectorT< S, DIM >>().norm())
auto norm() const -> decltype(std::sqrt(std::declval< VectorT< S, DIM >>().sqrnorm()))
compute euclidean norm