Standard_Integer nsub2;
if (data->ReadSubList (num,2,"bounds",ach,nsub2)) {
Standard_Integer nb2 = data->NbParams(nsub2);
- aBounds = new StepShape_HArray1OfFaceBound (1, nb2);
- for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
- //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
- if (data->ReadEntity (nsub2, i2,"face_bound", ach, STANDARD_TYPE(StepShape_FaceBound), anent2))
- aBounds->SetValue(i2, anent2);
- }
+ if( nb2)
+ {
+ aBounds = new StepShape_HArray1OfFaceBound (1, nb2);
+ for (Standard_Integer i2 = 1; i2 <= nb2; i2 ++) {
+ //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
+ if (data->ReadEntity (nsub2, i2,"face_bound", ach, STANDARD_TYPE(StepShape_FaceBound), anent2))
+ aBounds->SetValue(i2, anent2);
+ }
+ }
}
// --- inherited field : faceGeometry ---
--- /dev/null
+puts "============"
+puts "OCC24283"
+puts "============"
+puts ""
+#####################################################
+# STEP read failes to read unbound advanced_face
+#####################################################
+
+ReadStep D [locate_data_file bug24283_spheres.stp]
+
+
--- /dev/null
+puts "============"
+puts "OCC24283"
+puts "============"
+puts ""
+#####################################################
+# STEP read failes to read unbound advanced_face
+#####################################################
+
+stepread [locate_data_file bug24283_spheres.stp] a *
+tpcompound result
+
+vinit
+vdisplay result
+vfit
+vsetdispmode 1
+set only_screen 1
+
+
+