54 : _position_and_color(f)
70 return ( (i&1)==0 )?P1:P2 ;
80 return ( (i&1)==0 )?P1.pos():P2.pos() ;
107 for(
unsigned int i=0;i<fc.size();i++)
123 FLOAT anglemax = 0.0 ;
133 Vector3 normal_tmp((v3-v2)^(v1-v2)) ;
135 FLOAT v32norm = (v3-v2).norm() ;
137 if(normal_tmp.
z() > 0)
140 if((v32norm > 0.0)&&(v12norm > 0.0))
142 double anglemaxtmp = normal_tmp.
norm()/v32norm/v12norm ;
144 if(anglemaxtmp > anglemax)
146 anglemax = anglemaxtmp ;
147 normalmax = normal_tmp ;
166 o <<
"(" << f.
pos() <<
") + (" << f.
red() <<
"," << f.
green() <<
"," << f.
blue() <<
"," << f.
alpha() <<
")" << endl ;
virtual unsigned int nbVertices() const
const float FLAT_POLYGON_EPS
double equation(const Vector3 &p) const
virtual const Vector3 & vertex(int) const
virtual const Vector3 & vertex(int) const
virtual void initNormal()
virtual const Feedback3DColor & sommet3DColor(int) const
Feedback3DColor _position_and_color
Polygone(const std::vector< Feedback3DColor > &)
ostream & operator<<(ostream &o, const Quaternion &Q)
virtual unsigned int nbVertices() const
const Vector3 & pos() const
virtual AxisAlignedBox_xyz bbox() const
virtual const Vector3 & vertex(int) const
double infNorm() const
Infinite norm.
Point(const Feedback3DColor &f)
virtual AxisAlignedBox_xyz bbox() const
virtual AxisAlignedBox_xyz bbox() const
virtual const Feedback3DColor & sommet3DColor(int) const
AxisAlignedBox< Vector3 > AxisAlignedBox_xyz
virtual const Feedback3DColor & sommet3DColor(int i) const
double norm() const
Norm.