step-examples/12-2a-pcurves/Gp047.stp
Sources
- deep-pass v3 record matching OCCT method/branch (see file comment)
Description
LINE-backed edge whose pcurve is restricted to the parameter interval [0,1] while the EDGE_CURVE's start/end vertex parameters fall at 0.2 and 0.8. CheckPCurveRange must detect that the pcurve domain does not cover the edge's vertex parameter range.
Reproducer recipe
see `step-examples/12-2a-pcurves/Gp047.stp`; the fixture file's top comment names the specific OCCT method and line range.
Expected kernel behavior
detect or heal per the named OCCT branch; the fixture demonstrates the buggy input pattern.
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/* Gp047 - ShapeAnalysis_Edge.CheckPCurveRange parameter-domain mismatch 3 * Defect: edge whose pcurve's parameter range [0.0, 1.0] doesn't match the 4 * edge_curve's start/end vertex parameters [0.2, 0.8]. The EDGE_CURVE 5 * references LINE with implicit unbounded domain, but PCURVE is restricted 6 * to narrower interval. CheckPCurveRange detects mismatch between pcurve 7 * domain and 3D curve evaluation at vertex parameters. */ 8HEADER; 9FILE_DESCRIPTION(('Gp047 test case','CheckPCurveRange parameter-domain mismatch'),'2;1'); 10FILE_NAME('Gp047.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','',''); 11FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 12ENDSEC; 13DATA; 14#1=APPLICATION_CONTEXT('automotive_design'); 15#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 16#3=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.)); 17#4=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.)); 18#5=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT()); 19#6=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#3,'distance_accuracy_value',''); 20#7=( GEOMETRIC_REPRESENTATION_CONTEXT(3) 21 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#6)) 22 GLOBAL_UNIT_ASSIGNED_CONTEXT((#3,#4,#5)) 23 REPRESENTATION_CONTEXT('','3D') ); 24/* Host plane */ 25#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#11=DIRECTION('',(0.0,0.0,1.0)); 27#12=DIRECTION('',(1.0,0.0,0.0)); 28#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 29#14=PLANE('host_plane',#13); 30/* 3D curve: LINE with full unbounded domain */ 31#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#21=DIRECTION('',(1.0,0.0,0.0)); 33#22=LINE('line_unbounded',#20,#21); 34/* Vertices with parameter bounds [0.2, 0.8] that don't match pcurve [0.0, 1.0] */ 35#30=CARTESIAN_POINT('',(2.0,0.0,0.0)); 36#31=VERTEX_POINT('',#30); 37#32=CARTESIAN_POINT('',(8.0,0.0,0.0)); 38#33=VERTEX_POINT('',#32); 39/* PCURVE: LINE with restricted domain [0.0, 1.0] */ 40#40=CARTESIAN_POINT('',(0.0,0.0)); 41#41=DIRECTION('',(1.0,0.0)); 42#42=LINE('pcurve_line',#40,#41); 43#43=( GEOMETRIC_REPRESENTATION_CONTEXT(2) 44 PARAMETRIC_REPRESENTATION_CONTEXT() 45 REPRESENTATION_CONTEXT('parametric','2D') ); 46#44=DEFINITIONAL_REPRESENTATION('',(#42),#43); 47#45=PCURVE('pcurve_mismatch',#14,#44); 48/* SURFACE_CURVE with parameter mismatch */ 49#50=SURFACE_CURVE('edge_param_mismatch',#22,(#45),.PCURVE_S1.); 50/* EDGE_CURVE with vertex parameters [0.2, 0.8] but pcurve is [0.0, 1.0] */ 51#60=EDGE_CURVE('edge_gp047',#31,#33,#50,.T.); 52#61=ORIENTED_EDGE('',*,*,#60,.T.); 53#62=EDGE_LOOP('',(#61)); 54#63=FACE_OUTER_BOUND('',#62,.T.); 55#64=ADVANCED_FACE('',(#63),#14,.T.); 56#90=SHAPE_REPRESENTATION('Gp047',(#13,#64),#7); 57/* Wrap: PRODUCT chain so OCCT TransferRoots produces a shape. */ 58#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 59#9001=PRODUCT('Gp047','Gp047','',(#9000)); 60#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 61#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 62#9004=PRODUCT_DEFINITION('','',#9002,#9003); 63#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 64#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 65#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 66#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 67#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 68#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 69#9020=OPEN_SHELL('wrap_shell',(#64)); 70#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020)); 71#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 72#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 73ENDSEC; 74END-ISO-10303-21;