Skip to content
Snippets Groups Projects
Commit 3bb356d8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix crash if surface is incorrect

parent b2993c50
No related branches found
No related tags found
No related merge requests found
...@@ -467,7 +467,7 @@ bool iSRuledSurfaceASphere(Surface *s, SPoint3 &center, double &radius) ...@@ -467,7 +467,7 @@ bool iSRuledSurfaceASphere(Surface *s, SPoint3 &center, double &radius)
} }
} }
} }
if (isSphere){ if (isSphere && C[0]){
Vertex *p = C[0]->beg; Vertex *p = C[0]->beg;
radius = sqrt ((p->Pos.X - center.x())+ radius = sqrt ((p->Pos.X - center.x())+
(p->Pos.Y - center.y())+ (p->Pos.Y - center.y())+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment