step-examples/12-2a-pcurves/Gp019.stp
Sources
- 05-occt-shapefix.md F068 (`ShapeFix_ComposeShell.hxx:127`)
Description
A face is built on a composite surface (a grid of patches as in `RECTANGULAR_COMPOSITE_SURFACE`), but an edge that bounds a sub-face of the composite does not have a pcurve on the relevant sub-patch. The composite shell builder cannot decompose the face into per-patch sub-faces without the per-patch pcurve.
Reproducer recipe
A face on a composite surface containing an `EDGE_CURVE` whose `SURFACE_CURVE.associated_geometry` is empty for the relevant sub-patch.
Expected kernel behavior
synthesise the per-patch pcurves by projecting the 3D curve onto each sub-surface, or reject the face when projection fails. Composite surface decomposition without per-patch pcurves is undefined.
Notes
Cross-oracle: pure-Python Part-21 validator accepts (`accept`); OCCT crashes (`signal(11)`). The crash is on the kernel side; the file is spec-conformant Part-21. **See also**: Gp001, Tfa036. **OCC behavior**: crashes (signal 11) on this fixture (catalog disallows crash). Kernel-bug witnessed: receivers should produce one of {heal, reject}; never crash. Synonyms: "edge missing pcurve on composite-surface patch", "per-patch pcurve absent on RECTANGULAR_COMPOSITE_SURFACE", "composite shell decomposition fails no per-patch 2D curve", "sub-patch pcurve missing from face on composite surface", "face on composite surface has no pcurve for sub-face".
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'SURFACE_CURVE')contains(b'EDGE_CURVE')contains(b'PCURVE')
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/* Gp019 - Edge on supporting face has no pcurve in compose-shell 3 * Defect: a face on a RECTANGULAR_COMPOSITE_SURFACE has an edge whose 4 * SURFACE_CURVE.associated_geometry is empty for the relevant sub-patch. 5 * ShapeFix_ComposeShell needs per-patch pcurves and cannot proceed. */ 6HEADER; 7FILE_DESCRIPTION(('Gp019 test case','Edge has no pcurve in compose-shell'),'2;1'); 8FILE_NAME('Gp019.stp','2026-04-27T00:00:00',(''),(''),'auto-generated','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 10ENDSEC; 11DATA; 12#1=APPLICATION_CONTEXT('automotive_design'); 13#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 14#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 15#11=DIRECTION('',(0.0,0.0,1.0)); 16#12=DIRECTION('',(1.0,0.0,0.0)); 17#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 18/* Two co-planar sub-patches forming a 2x1 composite */ 19#20=PLANE('',#13); 20#14=CARTESIAN_POINT('',(1.0,0.0,0.0)); 21#15=AXIS2_PLACEMENT_3D('',#14,#11,#12); 22#21=PLANE('',#15); 23/* Patch transitions */ 24#22=SURFACE_PATCH(#20,.U_BOTH.,.U_BOTH.,.F.,.F.); 25#23=SURFACE_PATCH(#21,.U_BOTH.,.U_BOTH.,.F.,.F.); 26#24=RECTANGULAR_COMPOSITE_SURFACE('',((#22,#23))); 27/* Edge spanning across the patch boundary */ 28#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 29#31=DIRECTION('',(1.0,0.0,0.0)); 30#32=VECTOR('',#31,1.0); 31#33=LINE('',#30,#32); 32#40=VERTEX_POINT('',#30); 33#41=CARTESIAN_POINT('',(2.0,0.0,0.0)); 34#42=VERTEX_POINT('',#41); 35/* Defect: empty associated_geometry - no pcurve provided for either patch */ 36#50=SURFACE_CURVE('',#33,(),.PCURVE_S1.); 37#60=EDGE_CURVE('',#40,#42,#50,.T.); 38#61=ORIENTED_EDGE('',*,*,#60,.T.); 39#62=EDGE_LOOP('',(#61)); 40#63=FACE_OUTER_BOUND('',#62,.T.); 41#64=ADVANCED_FACE('',(#63),#24,.T.); 42ENDSEC; 43END-ISO-10303-21;