step-examples/12-2a-pcurves/Gp058.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Edge.CheckPCurveRange degenerate-vertex parameters
Reproducer recipe
Expected kernel behavior
Given an edge whose start and end vertex are the same entity and whose 3D curve and pcurve both collapse to a single point, detect the zero-length parameter domain BEFORE any range comparison: the check must not assume two distinct vertex parameters, must not divide by or normalise against a zero span, and must return the same verdict on every run. Classify such an edge as degenerate and report it per-entity; a degenerate edge must never take down the read.
Notes
RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by a core geometry entity written with the wrong number of arguments (typically the name string omitted, which shifts every later value one slot left, putting a reference where a string belongs). The abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=accept(0)
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2HEADER; 3FILE_DESCRIPTION(('Gp058: CheckPCurveRange degenerate-vertex; start==end vertex identity'),2000); 4FILE_NAME('Gp058.stp','2026-06-15T00:00:00',(''),(''),'',' ',' '); 5FILE_SCHEMA(('IFC4')); 6ENDSEC; 7DATA; 8#1=APPLICATION_PROTOCOL_DEFINITION('international standard','ifc',2000,#2); 9#2=APPLICATION_CONTEXT('3D structural analysis and design'); 10#10=AXIS2_PLACEMENT_3D('origin',#11,#12,#13); 11#11=CARTESIAN_POINT('',(0.,0.,0.)); 12#12=DIRECTION('',(0.,0.,1.)); 13#13=DIRECTION('',(1.,0.,0.)); 14#20=PLANE('face',#10); 15#30=B_SPLINE_CURVE_WITH_KNOTS('zero_length_curve',1, 16 (#31,#32), 17 .UNSPECIFIED.,.F.,.F.,.F., 18 (2,2), 19 (0.,1.), 20 $); 21#31=CARTESIAN_POINT('',(1.,1.,0.)); 22#32=CARTESIAN_POINT('',(1.,1.,0.)); 23#40=B_SPLINE_CURVE_WITH_KNOTS('degenerate_pcurve',1, 24 (#41,#42), 25 .UNSPECIFIED.,.F.,.F.,.F., 26 (2,2), 27 (0.,1.), 28 $); 29#41=CARTESIAN_POINT('',(0.,0.)); 30#42=CARTESIAN_POINT('',(0.,0.)); 31#50=VERTEX_POINT('v_degenerate',#31); 32#60=EDGE_CURVE('degen_edge',#50,#50,.T.,#30,.T.); 33#70=PCURVE('degen_pcurve',#20,#40); 34#80=EDGE_LOOP('loop',(#60)); 35#90=ADVANCED_FACE('face_degenerate', 36 (#80),#20,.T.); 37#100=SHELL_BASED_SURFACE_MODEL('sbsm',(#110)); 38#110=CLOSED_SHELL('shell',(#90)); 39#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 40#9001=PRODUCT('Gp058','Gp058','',(#9000)); 41#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 42#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 43#9004=PRODUCT_DEFINITION('','',#9002,#9003); 44#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 45#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 46#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 47#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 48#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 49#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 50#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#110)); 51#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 52#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 53ENDSEC; 54END-ISO-10303-21;