From 0b0bb183236b40476bbb5f71dc66561f4ee56f01 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 17 Oct 2024 10:31:50 +0200 Subject: [PATCH] Revert "Horrible hack to work around bug in OCCT7.7.2" This reverts commit 60640fa4415548ebfa19c1f929ea2da7e4980fe7. --- src/Mod/Part/App/PrimitiveFeature.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Mod/Part/App/PrimitiveFeature.cpp b/src/Mod/Part/App/PrimitiveFeature.cpp index e2aa490c38..1be4ee684d 100644 --- a/src/Mod/Part/App/PrimitiveFeature.cpp +++ b/src/Mod/Part/App/PrimitiveFeature.cpp @@ -652,13 +652,6 @@ App::DocumentObjectExecReturn *Cone::execute() return new App::DocumentObjectExecReturn("Radius of cone too small"); if (Height.getValue() < Precision::Confusion()) return new App::DocumentObjectExecReturn("Height of cone too small"); - double angle = Angle.getValue(); -#if OCC_VERSION_HEX == 0x070702 - // OCCT 7.7.2 will not model a cone with an angle of exactly 360, so we cheat: - if ( angle == 360.0) { - angle = 359.99; - } -#endif try { TopoDS_Shape ResultShape; if (std::abs(Radius1.getValue() - Radius2.getValue()) < Precision::Confusion()){ @@ -672,7 +665,7 @@ App::DocumentObjectExecReturn *Cone::execute() BRepPrimAPI_MakeCone mkCone(Radius1.getValue(), Radius2.getValue(), Height.getValue(), - Base::toRadians(angle)); + Base::toRadians(Angle.getValue())); ResultShape = mkCone.Shape(); } this->Shape.setValue(ResultShape);