mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0022717: Exception during sewing
This commit is contained in:
@@ -191,7 +191,7 @@ is
|
||||
---Purpose: Computes the 3d curve for the edge <E> if it does
|
||||
-- not exist. Returns True if the curve was computed
|
||||
-- or existed. Returns False if there is no planar
|
||||
-- pcurve.
|
||||
-- pcurve or the computation failed.
|
||||
-- <MaxSegment> >= 30 in approximation
|
||||
|
||||
BuildCurves3d(S : Shape from TopoDS ;
|
||||
|
@@ -347,7 +347,8 @@ Standard_Boolean BRepLib::BuildCurve3d(const TopoDS_Edge& AnEdge,
|
||||
// compute the 3d curve
|
||||
gp_Ax2 axes = P->Position().Ax2();
|
||||
Handle(Geom_Curve) C3d = GeomLib::To3d(axes,PC);
|
||||
|
||||
if (C3d.IsNull())
|
||||
return Standard_False;
|
||||
// update the edge
|
||||
Standard_Real First, Last;
|
||||
|
||||
@@ -419,7 +420,8 @@ Standard_Boolean BRepLib::BuildCurve3d(const TopoDS_Edge& AnEdge,
|
||||
//Patch
|
||||
//max_deviation = Max(tolerance, max_deviation) ;
|
||||
max_deviation = Max( tolerance, Tolerance );
|
||||
|
||||
if (NewCurvePtr.IsNull())
|
||||
return Standard_False;
|
||||
Standard_Boolean is_closed ;
|
||||
is_closed = AnEdge.Closed() ;
|
||||
B.UpdateEdge(TopoDS::Edge(AnEdge),
|
||||
|
Reference in New Issue
Block a user