#include "BLSURFPlugin_Attractor.hxx"
#include <utilities.h>
+// cascade include
+#include "ShapeAnalysis.hxx"
+
BLSURFPlugin_Attractor::BLSURFPlugin_Attractor ()
: _face(),
_attractorShape(),
// Discretization of the parameters
MESSAGE("Calcul des bornes de la surface : ");
- aSurf->Bounds(_u1, _u2, _v1, _v2); // unusable in the generic case because the surface may be infinite (ok for prototype on a Sphere)
+ //aSurf->Bounds(_u1, _u2, _v1, _v2); // unusable in the generic case because the surface may be infinite (ok for prototype on a Sphere)
+
+ // Calculation of the bounds for the generic case
+ ShapeAnalysis::GetFaceUVBounds(_face,_u1,_u2,_v1,_v2);
MESSAGE("u1 = "<<_u1<<" ,u2 = "<<_u2);
MESSAGE("v1 = "<<_v1<<" ,v2 = "<<_v2);
double Ustep = (_u2 - _u1) / _mapGrid;