mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0024517: Crash at StepToTopoDS_TranslateEdge::Init()
Fixed crash at StepToTopoDS_TranslateEdge::Init() for case when curve is absent) Corrected error message for case of absence geom curve in edge curve
This commit is contained in:
parent
3804f298a1
commit
545ef510a7
@ -258,6 +258,13 @@ void StepToTopoDS_TranslateEdge::Init(const Handle(StepShape_Edge)& aEdge,
|
|||||||
// Standard_Real precision = BRepAPI::Precision();
|
// Standard_Real precision = BRepAPI::Precision();
|
||||||
|
|
||||||
Handle(StepGeom_Curve) C = EC->EdgeGeometry();
|
Handle(StepGeom_Curve) C = EC->EdgeGeometry();
|
||||||
|
if( C.IsNull())
|
||||||
|
{
|
||||||
|
TP->AddFail(EC," Geom Curve in EdgeCurve is equal to 0");
|
||||||
|
myError = StepToTopoDS_TranslateEdgeOther;
|
||||||
|
done = Standard_False;
|
||||||
|
return;
|
||||||
|
}
|
||||||
TopoDS_Edge E;
|
TopoDS_Edge E;
|
||||||
Handle(StepShape_Vertex) Vstart, Vend;
|
Handle(StepShape_Vertex) Vstart, Vend;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user