step-examples/12-2a-pcurves/Gp096.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Edge.CheckCurve3dWithPCurve direction-reversed-but-coincident
Reproducer recipe
Expected kernel behavior
reject at parse time: `LINE.dir` is declared `VECTOR` but names a `CARTESIAN_POINT`. Diagnose the mistyped reference instead of constructing a direction from whatever the handle resolves to.
Notes
RUNTIME-VERIFIED 2026-08-08 — the recorded crash comes from this file's straight-line direction argument, which references a plain direction where the schema declares a vector carrying a magnitude; repairing that one reference makes the file load, so the titled condition is never reached. See BACKLOG (M).
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp096 - ShapeAnalysis_Edge.CheckCurve3dWithPCurve direction-reversed-but-coincident 3 * Defect: edge whose 3D curve and pcurve trace the same geometric path but with 4 * reversed parameter direction. CheckCurve3dWithPCurve evaluates same-direction 5 * samples and finds mismatch, failing to detect the reversal as intentional. */ 6HEADER; 7FILE_DESCRIPTION(('Gp096 test case','CheckCurve3dWithPCurve direction-reversed-but-coincident'),'2;1'); 8FILE_NAME('Gp096.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14#3=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.)); 15#4=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.)); 16#5=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT()); 17#6=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#3,'distance_accuracy_value',''); 18#7=( GEOMETRIC_REPRESENTATION_CONTEXT(3) 19 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#6)) 20 GLOBAL_UNIT_ASSIGNED_CONTEXT((#3,#4,#5)) 21 REPRESENTATION_CONTEXT('','3D') ); 22/* Host plane */ 23#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#11=DIRECTION('',(0.0,0.0,1.0)); 25#12=DIRECTION('',(1.0,0.0,0.0)); 26#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 27#14=PLANE('host_plane',#13); 28/* 3D curve: line from (0,0,0) to (10,10,0) */ 29#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 30#21=CARTESIAN_POINT('',(10.0,10.0,0.0)); 31#22=LINE('curve_3d',#20,#21); 32/* Vertices */ 33#30=VERTEX_POINT('',(0.0,0.0,0.0)); 34#31=CARTESIAN_POINT('',(10.0,10.0,0.0)); 35#32=VERTEX_POINT('',#31); 36/* PCURVE: same line but parameterized in reverse (10,10) to (0,0) */ 37#40=CARTESIAN_POINT('',(10.0,10.0)); 38#41=CARTESIAN_POINT('',(0.0,0.0)); 39#42=LINE('pcurve_reversed',#40,#41); 40#43=( GEOMETRIC_REPRESENTATION_CONTEXT(2) 41 PARAMETRIC_REPRESENTATION_CONTEXT() 42 REPRESENTATION_CONTEXT('parametric','2D') ); 43#44=DEFINITIONAL_REPRESENTATION('',(#42),#43); 44#45=PCURVE('pcurve_rev_line',#14,#44); 45/* SURFACE_CURVE with reversed pcurve direction */ 46#50=SURFACE_CURVE('edge_reversed_direction',#22,(#45),.PCURVE_S1.); 47#60=EDGE_CURVE('edge_gp096',#30,#32,#50,.T.); 48#61=ORIENTED_EDGE('',*,*,#60,.T.); 49#62=EDGE_LOOP('',(#61)); 50#63=FACE_OUTER_BOUND('',#62,.T.); 51#64=ADVANCED_FACE('',(#63),#14,.T.); 52#90=SHAPE_REPRESENTATION('Gp096',(#13,#64),#7); 53/* PRODUCT chain */ 54#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 55#9001=PRODUCT('Gp096','Gp096','',(#9000)); 56#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 57#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 58#9004=PRODUCT_DEFINITION('','',#9002,#9003); 59#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 60#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 61#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 62#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 63#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 64#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 65#9020=OPEN_SHELL('wrap_shell',(#64)); 66#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020)); 67#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 68#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 69ENDSEC; 70END-ISO-10303-21;