diff --git a/vcg/complex/trimesh/point_sampling.h b/vcg/complex/trimesh/point_sampling.h index 006dbac6..8e4c227f 100644 --- a/vcg/complex/trimesh/point_sampling.h +++ b/vcg/complex/trimesh/point_sampling.h @@ -534,14 +534,14 @@ static void SingleFaceRaster(FaceType &f, VertexSampler &ps, const Point2v2[0]) bbox.min[0]=v2[0]; - else if(bbox.max[0]v2[1]) bbox.min[1]=v2[1]; - else if(bbox.max[1]int(v2[0])) bbox.min[0]=int(v2[0]); + else if(bbox.max[0]int(v2[1])) bbox.min[1]=int(v2[1]); + else if(bbox.max[1] d10 = v1 - v0;