step-examples/12-2a-pcurves/Gp042.stp
Sources
- synthesized — no external source cited
Description
SURFACE_CURVE has no PCURVE `(*)`. Some FixAddPCurve branches bypass plane-trivial PCURVE construction when geometry or downstream healing requires explicit parametric representation. Geometry: PLANE host; 3D LINE from (0,0,0) to (5,0,0); empty SURFACE_CURVE.associated_geometry list.
Reproducer recipe
Expected kernel behavior
Given a boundary edge whose `SURFACE_CURVE` carries a 3D curve but an empty associated-geometry list, do not leave the edge without a 2D representation: compute the pcurve by projecting the already-built 3D curve onto the face's surface (a trivial mapping on a plane). If the projection yields no usable parameter range, drop the pcurve and keep the edge as 3D-only on that face with a diagnostic — a missing pcurve is a repairable condition, never a reason to abort the read.
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/* Gp042 - ShapeFix_Edge.FixAddPCurve plane-bypass missing trivial PCURVE 3 * Defect: edge on a PLANE has only the 3D curve but NO PCURVE in the 4 * SURFACE_CURVE associated_geometry list. Some FixAddPCurve branches 5 * skip constructing a plane-trivial PCURVE even when downstream healing 6 * requires explicit parametric representation. The SURFACE_CURVE carries 7 * only the 3D LINE and empty pcurve list '()'. */ 8HEADER; 9FILE_DESCRIPTION(('Gp042 test case','FixAddPCurve plane-bypass missing pcurve'),'2;1'); 10FILE_NAME('Gp042.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 on the plane */ 31#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 32#21=DIRECTION('',(1.0,0.0,0.0)); 33#22=VECTOR('',#21,1.0); 34#23=LINE('line_3d',#20,#22); 35/* Vertices */ 36#30=VERTEX_POINT('',(0.0,0.0,0.0)); 37#31=CARTESIAN_POINT('',(5.0,0.0,0.0)); 38#32=VERTEX_POINT('',#31); 39/* Defect: SURFACE_CURVE with empty associated_geometry - no PCURVE */ 40#50=SURFACE_CURVE('edge_no_pcurve',#23,(),.PCURVE_S1.); 41#60=EDGE_CURVE('edge_gp042',#30,#32,#50,.T.); 42#61=ORIENTED_EDGE('',*,*,#60,.T.); 43#62=EDGE_LOOP('',(#61)); 44#63=FACE_OUTER_BOUND('',#62,.T.); 45#64=ADVANCED_FACE('',(#63),#14,.T.); 46#90=SHAPE_REPRESENTATION('Gp042',(#13,#64),#7); 47/* Wrap: PRODUCT chain so OCCT TransferRoots produces a shape. */ 48#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 49#9001=PRODUCT('Gp042','Gp042','',(#9000)); 50#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 51#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 52#9004=PRODUCT_DEFINITION('','',#9002,#9003); 53#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 54#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 55#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 56#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 57#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 58#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 59#9020=OPEN_SHELL('wrap_shell',(#64)); 60#9021=SHELL_BASED_SURFACE_MODEL('wrap_sbsm',(#9020)); 61#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010); 62#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022); 63ENDSEC; 64END-ISO-10303-21;