Commit c0275889 authored by Thomas Pitiot 's avatar Thomas Pitiot
Browse files

color ok

parent 9c17bb11
...@@ -102,6 +102,10 @@ void Needle::unColor_close(Dart volume) ...@@ -102,6 +102,10 @@ void Needle::unColor_close(Dart volume)
{ {
t->surf->changeColor(t,-1); t->surf->changeColor(t,-1);
} }
for(Triangle * t : sim_->envMap_.RegisteredNeighborTriangles[volume])
{
t->surf->changeColor(t,-1);
}
} }
void Needle::createEdge(int index) void Needle::createEdge(int index)
...@@ -232,7 +236,7 @@ void Needle::refine() ...@@ -232,7 +236,7 @@ void Needle::refine()
Dart volume = parts_[0]->d; Dart volume = parts_[0]->d;
REAL rayon = sim_->envMap_.volumeMaxdistance(volume) ; REAL rayon = sim_->envMap_.volumeMaxdistance(volume) ;
if(rayon > 2.0f ) if(rayon > sim_->envMap_.maxCellRay )
{ {
if(sim_->envMap_.subdivideVolume(volume)) if(sim_->envMap_.subdivideVolume(volume))
{ {
......
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