MESSAGE("BLSURFPlugin_BLSURF::Compute");
-// if (aShape.ShapeType() == TopAbs_COMPOUND) {
-// MESSAGE(" the shape is a COMPOUND");
-// }
-// else {
-// MESSAGE(" the shape is UNKNOWN");
-// };
-
// Fix problem with locales
Kernel_Utils::Localizer aLocalizer;
TopTools_IndexedMapOfShape _map;
TopExp::MapShapes(aShape,TopAbs_VERTEX,_map);
int ienf = _map.Extent();
- BLSURFPlugin_Attractor myAttractor;
+
for (TopExp_Explorer face_iter(aShape,TopAbs_FACE);face_iter.More();face_iter.Next()) {
TopoDS_Face f=TopoDS::Face(face_iter.Current());
MESSAGE("Check position of vertex =(" << xyzCoords[0] << "," << xyzCoords[1] << "," << xyzCoords[2] << ")");
gp_Pnt P(xyzCoords[0],xyzCoords[1],xyzCoords[2]);
BRepClass_FaceClassifier scl(f,P,1e-7);
- // scl.Perform() is bugged. The function was rewritten
-// scl.Perform();
- BRepClass_FaceClassifierPerform(&scl,f,P,1e-7);
+ // OCC 6.3sp6 : scl.Perform() is bugged. The function was rewritten
+// BRepClass_FaceClassifierPerform(&scl,f,P,1e-7);
+ // OCC 6.5.2: scl.Perform() is not bugged anymore
+ scl.Perform(f, P, 1e-7);
TopAbs_State result = scl.State();
MESSAGE("Position of point on face: "<<result);
if ( result == TopAbs_OUT ) {