step-examples/12-6-assembly/A072.stp
Sources
- OCCT MANTIS#0023379
- OCCT MANTIS#0013175 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A document contains a single isolated vertex (e.g., a reference point). The STEP writer emits both a `CARTESIAN_POINT` and a redundant `VERTEX_POINT` at top level, producing a compound-of-two-points on re-import.
Reproducer recipe
XCAF document with one TopoDS_Vertex at coords `(0,0,0)`. Write to STEP. Reader sees two points.
Expected kernel behavior
Heal and accept: a single vertex is emitted as one `VERTEX_POINT` referenced from one shape representation; never duplicate.
Notes
Provenance tier: writer-side; writer emits compound-of-two-points instead of single vertex.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
count_entity_def(b'CARTESIAN_POINT') == 1count_entity_def(b'VERTEX_POINT') == 1contains(b'emitted_twice')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* A072: single vertex emitted as both CARTESIAN_POINT and VERTEX_POINT ('emitted_twice' pattern) */ 3HEADER; 4FILE_DESCRIPTION(('A072'),'2;1'); 5FILE_NAME('A072.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 10#2=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 11#3=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 12#4=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#1,'distance_accuracy_value',''); 13#5=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#4))GLOBAL_UNIT_ASSIGNED_CONTEXT((#1,#2,#3))REPRESENTATION_CONTEXT('','3D')); 14#6=CARTESIAN_POINT('emitted_twice',(0.0,0.0,0.0)); 15#7=VERTEX_POINT('emitted_twice',#6); 16#8=ADVANCED_BREP_SHAPE_REPRESENTATION('compound_two_pts',(#6,#7),#5); 17#9=COLOUR_RGB('vertex_color',0.5,0.5,0.5); 18#10=FILL_AREA_STYLE_COLOUR('',#9); 19#11=FILL_AREA_STYLE('',(#10)); 20#12=SURFACE_STYLE_FILL_AREA(#11); 21#13=SURFACE_SIDE_STYLE('',(#12)); 22#14=SURFACE_STYLE_USAGE(.BOTH.,#13); 23#15=PRESENTATION_STYLE_ASSIGNMENT((#14)); 24#16=STYLED_ITEM('vertex_style',(#15),#7); 25ENDSEC; 26END-ISO-10303-21;