mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 11:50:33 +05:00
0022051: [CEA 744] SALOME crashes when calliing "BasicProperties" on a sphere degenerated edge
This commit is contained in:
parent
71e5d76282
commit
6e9295ce4c
@ -512,7 +512,7 @@ TopoDS_Shape GEOMBase::CreateArrowForLinearEdge( const TopoDS_Shape& shape )
|
||||
try {
|
||||
Standard_Real first, last;
|
||||
Handle(Geom_Curve) curv = BRep_Tool::Curve( TopoDS::Edge( shape ), first, last );
|
||||
if ( curv->IsCN(1) ) {
|
||||
if ( !curv.IsNull() && curv->IsCN(1) ) {
|
||||
const Standard_Real param = ( first+last ) / 2.0;
|
||||
gp_Pnt middleParamPoint;
|
||||
gp_Vec V1;
|
||||
|
Loading…
Reference in New Issue
Block a user