mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0029784: Crash at STEP file reading with enabled sub-shapes
In the method STEPCAFControl_Reader::ExpandShell protection for case when entity ""Connected_Face_Set" contains not only "FACE" entities ( for example "VERTEX_POINT" entities) was added.
This commit is contained in:
parent
f841d372e9
commit
ea7ffc2802
@ -4580,6 +4580,8 @@ void STEPCAFControl_Reader::ExpandShell(const Handle(StepShape_ConnectedFaceSet)
|
||||
for ( Standard_Integer f = aFaces->Lower(); f <= aFaces->Upper(); ++f )
|
||||
{
|
||||
const Handle(StepShape_Face)& aFace = aFaces->Value(f);
|
||||
if (aFace.IsNull())
|
||||
continue;
|
||||
|
||||
// Record CAF data
|
||||
SettleShapeData(aFace, RootLab, ShapeTool, TP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user