55 : _position_and_color(f)
71 return ( (i&1)==0 )?P1:P2 ;
81 return ( (i&1)==0 )?P1.pos():P2.pos() ;
108 for(
size_t i=0;i<fc.size();i++)
124 FLOAT anglemax = 0.0 ;
134 Vector3 normal_tmp((v3-v2)^(v1-v2)) ;
136 FLOAT v32norm = (v3-v2).norm() ;
138 if(normal_tmp.
z() > 0)
141 if((v32norm > 0.0)&&(v12norm > 0.0))
143 double anglemaxtmp = normal_tmp.
norm()/v32norm/v12norm ;
145 if(anglemaxtmp > anglemax)
147 anglemax = anglemaxtmp ;
148 normalmax = normal_tmp ;
167 o <<
"(" << f.
pos() <<
") + (" << f.
red() <<
"," << f.
green() <<
"," << f.
blue() <<
"," << f.
alpha() <<
")" << endl ;
virtual const Vector3 & vertex(size_t) const
const float FLAT_POLYGON_EPS
double equation(const Vector3 &p) const
virtual void initNormal()
Feedback3DColor _position_and_color
Polygone(const std::vector< Feedback3DColor > &)
virtual const Vector3 & vertex(size_t) const
ostream & operator<<(ostream &o, const Quaternion &Q)
virtual const Feedback3DColor & sommet3DColor(size_t) const
const Vector3 & pos() const
virtual AxisAlignedBox_xyz bbox() const
virtual size_t nbVertices() const
virtual const Feedback3DColor & sommet3DColor(size_t) const
double infNorm() const
Infinite norm.
Point(const Feedback3DColor &f)
virtual AxisAlignedBox_xyz bbox() const
virtual AxisAlignedBox_xyz bbox() const
AxisAlignedBox< Vector3 > AxisAlignedBox_xyz
virtual size_t nbVertices() const
virtual const Feedback3DColor & sommet3DColor(size_t i) const
virtual const Vector3 & vertex(size_t) const
double norm() const
Norm.