From: gka Date: Tue, 16 May 2006 07:41:08 +0000 (+0000) Subject: Added tangent plane for face X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abd4364700aaa4166d2dd011af9877d70f995699;p=modules%2Fgeom.git Added tangent plane for face --- diff --git a/src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx b/src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx index 822b1f764..1a2fe76bd 100644 --- a/src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx @@ -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);