From abd4364700aaa4166d2dd011af9877d70f995699 Mon Sep 17 00:00:00 2001 From: gka Date: Tue, 16 May 2006 07:41:08 +0000 Subject: [PATCH] Added tangent plane for face --- src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) 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); -- 2.39.2