Add check for null vertex during translation from STEP.
StepToTopoDS_Tool& aTool,
StepToTopoDS_NMTool& NMTool)
{
+ if (aVertex.IsNull()) {
+ myError = StepToTopoDS_TranslateVertexOther;
+ done = Standard_False;
+ return;
+ }
if (!aTool.IsBound(aVertex)) {
// [BEGIN] Proceed with non-manifold topology (ssv; 14.11.2010)
stepread [locate_data_file bug26451_Test_STEP.stp] a *
tpcompound result
-checkprops result -s 550061
+checkprops result -s 551394
checkshape result
set nbshapes_expected "
Number of shapes in shape
- VERTEX : 7973
- EDGE : 8250
- WIRE : 1950
- FACE : 1716
- SHELL : 1716
+ VERTEX : 8057
+ EDGE : 8372
+ WIRE : 1988
+ FACE : 1754
+ SHELL : 1754
SOLID : 0
COMPSOLID : 0
COMPOUND : 1
- SHAPE : 21606
+ SHAPE : 21926
"
checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
checkview -display result -3d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "========"
+puts "OCC28256"
+puts "========"
+puts ""
+##########################################################################
+# Opening specific STEP file leads to application crash
+##########################################################################
+
+stepread [locate_data_file bug28256_test.stp] a *
+tpcompound result
+
+checkprops result -s 1.8e+101
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 56881
+ EDGE : 85310
+ WIRE : 37795
+ FACE : 32992
+ SHELL : 1318
+ SOLID : 1308
+ COMPSOLID : 0
+ COMPOUND : 1
+ SHAPE : 215605
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
+checkview -display result -3d -path ${imagedir}/${test_image}.png
\ No newline at end of file