step-examples/12-11-adversarial/Ad085.stp
Sources
- 04-occt-translation.md Q023
Description
Composite curve whose segment list contains a reference back to the curve itself.
Reproducer recipe
`#1=COMPOSITE_CURVE('',(#2),.T.); #2=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#1);`
Expected kernel behavior
cycle-detect during composite-curve assembly; reject with `E_CURVE_CYCLE`.
Notes
**See also**: Ad004, Gs035, Pf010. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'COMPOSITE_CURVE') and contains(b'COMPOSITE_CURVE_SEGMENT')count_entity_def(b'COMPOSITE_CURVE_SEGMENT') >= 1
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ad085: COMPOSITE_CURVE whose segment list references COMPOSITE_CURVE_SEGMENT that references back the parent curve (self-cycle); cycle-detect must reject with E_CURVE_CYCLE; OCC silently accepts with empty result; Q023; See also Ad004, Gs035, Pf010; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad085'),'2;1'); 5FILE_NAME('Ad085.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#3=COMPOSITE_CURVE('',( #4),.T.); 12#4=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#3); 13#5=COMPOSITE_CURVE('a',(#7),.T.); 14#6=COMPOSITE_CURVE('b',(#8),.T.); 15#7=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#6); 16#8=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#5); 17ENDSEC; 18END-ISO-10303-21;