]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Added tangent plane for face
authorgka <gka@opencascade.com>
Tue, 16 May 2006 07:41:08 +0000 (07:41 +0000)
committergka <gka@opencascade.com>
Tue, 16 May 2006 07:41:08 +0000 (07:41 +0000)
src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx

index 822b1f764cba0d22db8b4a5dd39d533efb63c74e..1a2fe76bda4193446f1ab202319d57d55045ae96 100644 (file)
@@ -105,16 +105,6 @@ Standard_Integer GEOMImpl_ThruSectionsDriver::Execute(TFunction_Logbook& log) co
     if(aTypeSect == TopAbs_WIRE)
     {
       aBuilder.AddWire(TopoDS::Wire(aShapeSection));
-      /*BRepBuilderAPI_MakeWire aTool;
-      
-      TopExp_Explorer aExp(aShapeSection,TopAbs_EDGE);
-      for( ; aExp.More() ; aExp.Next())
-       aTool.Add(TopoDS::Edge(aExp.Current()));
-      if(aTool.IsDone())
-      {
-       TopoDS_Wire aSectWire = aTool.Wire();//TopoDS::Wire(aShapeSection);
-       aBuilder.AddWire(aSectWire);
-      }*/
     }
     else if(aTypeSect == TopAbs_EDGE) {
       TopoDS_Edge anEdge = TopoDS::Edge(aShapeSection);
@@ -139,10 +129,10 @@ Standard_Integer GEOMImpl_ThruSectionsDriver::Execute(TFunction_Logbook& log) co
      return 0;
   }
 
-  //BRepCheck_Analyzer ana (aShape, Standard_False);
-  //if (!ana.IsValid()) {
-  //  Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result");
-  //}
+  BRepCheck_Analyzer ana (aShape, Standard_False);
+  if (!ana.IsValid()) {
+    Standard_ConstructionError::Raise("Algorithm have produced an invalid shape result");
+  }
 
   aFunction->SetValue(aShape);