From f381a62852e829c027b3f3c2ef9b7a6716e3661f Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 18 Nov 2025 11:20:17 +0000 Subject: [PATCH] STEP import fails if cascade unit it set to M (OCCT #512) (Salome bos #45226) --- src/StepToGeom/StepToGeom.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/StepToGeom/StepToGeom.cxx b/src/StepToGeom/StepToGeom.cxx index 1e78d217aa..adf1189fcd 100644 --- a/src/StepToGeom/StepToGeom.cxx +++ b/src/StepToGeom/StepToGeom.cxx @@ -1614,8 +1614,6 @@ Handle(Geom_Line) StepToGeom::MakeLine(const Handle(StepGeom_Line)& SC, Handle(Geom_VectorWithMagnitude) D = MakeVectorWithMagnitude(SC->Dir(), theLocalFactors); if (!D.IsNull()) { - if (D->Vec().SquareMagnitude() < Precision::Confusion() * Precision::Confusion()) - return 0; const gp_Dir V(D->Vec()); return new Geom_Line(P->Pnt(), V); } -- 2.39.5