step-examples/12-13-writer-pathology/Wr010.stp
Sources
- OCCT forum "writer emitted asterisk in CARTESIAN_POINT coords"
- bug-reporter language: "asterisk in geometry"
Sender
Buggy writers that mis-handle the inheritance-override mechanism for complex (subtype) entities and apply it to non-inherited attributes
Description
The `*` token denotes an attribute inherited from a supertype and overridden in a subtype context; valid only inside complex (subtype-stack) records. The producer emits `*` in a simple-entity instance where no supertype exists, producing `CARTESIAN_POINT('p',(*,0.0,0.0))` or similar. Receivers diverge: some treat `*` as an error, some treat it as zero, some treat it as `$`. Bug-reporter language: "asterisk where number expected", "STEP file has stars in coordinates", "writer used override-marker incorrectly".
Reproducer recipe
`CARTESIAN_POINT('p',(*,0.0,0.0))` in a non-subtype context.
Expected kernel behavior
reject as malformed; `*` is meaningful only in complex-instance subtype-override position.
Notes
ISO 10303-21 §10 defines `*` semantics narrowly. Provenance tier: writer-side (Q5 full-corpus 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
matches(rb'CARTESIAN_POINT\([^;]*,\(\*\s*,')matches(rb'\(\*,')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Wr010: asterisk used as override-marker in non-subtype CARTESIAN_POINT */ 3HEADER; 4FILE_DESCRIPTION(('Wr010 - asterisk in simple entity coordinates'),'2;1'); 5FILE_NAME('Wr010.stp','2026-06-20T00:00:00',('auto-generated'),(''), 6 'auto-generated','',''); 7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 8ENDSEC; 9DATA; 10/* Defect: * used as a coord value in a plain CARTESIAN_POINT (not a subtype stack) */ 11/* Valid context for * is inside complex entity records only, e.g.: */ 12/* #N=(POINT()CARTESIAN_POINT((*,0.,0.))...) */ 13/* Here it appears in a simple entity: schema violation */ 14#1=CARTESIAN_POINT('defect-point',(*,0.,0.)); 15#2=CARTESIAN_POINT('ok-point',(1.,0.,0.)); 16#3=CARTESIAN_POINT('ok-point2',(1.,1.,0.)); 17#4=DIRECTION('zdir',(0.,0.,1.)); 18#5=DIRECTION('xdir',(1.,0.,0.)); 19#6=GEOMETRIC_CURVE_SET('asterisk-defect',(#2,#3)); 20ENDSEC; 21END-ISO-10303-21;