Commit f656d2cc authored by pitiot's avatar pitiot

precision

parent 75925b32
......@@ -140,8 +140,8 @@ void ParticleCell2DMemo<PFP>::vertexState(const VEC3& current, CellMarkerMemo<FA
do
{
if(Geometry::isPointOnHalfEdge<PFP>(this->m,this->d,this->positionAttribut,current)
&& Geometry::isPointOnHalfEdge<PFP>(this->m,this->m.phi2(this->d),this->positionAttribut,current)
&& this->getOrientationEdge(current, this->d) == Geom::ALIGNED)
&& Geometry::isPointOnHalfEdge<PFP>(this->m,this->m.phi2(this->d),this->positionAttribut,current))
// && this->getOrientationEdge(current, this->d) == Geom::ALIGNED)
{
this->edgeState(current,memo_cross) ;
......
......@@ -166,7 +166,7 @@ bool arePointsEquals(const VEC& point1, const VEC& point2)
{
VEC v(point1 - point2);
#define PRECISION 1e-10
#define PRECISION 1e-5
return v.norm2() <= PRECISION ;
#undef PRECISION
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment