step-examples/12-2a-pcurves/Gp175.stp
Sources
- occt-coverage GAP audit, `exchange/problems.json` `bc-no-curve-on-surface` (`BRepCheck_Edge::InContext`, `BRepCheck_Edge.cxx:437` — sets `BRepCheck_NoCurveOnSurface`)
- `exchange/COVERED_FULL_REVERIFY.md` downgrade note: all 4 previously-cited fixtures (Gp001, Gp042, Gp019, Xp002) show `occt=signal(11)` — OCCT crashes before `BRepCheck` can ever run, so none of them actually demonstrate the `BRepCheck_NoCurveOnSurface` mechanism live.
Sender
STEP exporters in 3D-only mode; IGES BRep round-trips that drop pcurves entirely.
Description
An `EDGE_CURVE` bounding an `ADVANCED_FACE` on a `PLANE` has only its 3D curve populated — no pcurve accompanies it — while the rest of the wire (3 other edges) is fully healthy. Isolated empirically from Gp001/Gp042's crash: both of those fixtures wrap their defective edge's 3D `LINE` in a `SURFACE_CURVE` whose `associated_geometry` list is empty (`()`) while `master_representation` is still `.PCURVE_S1.` — a self-contradictory pairing (the enum says "use `associated_geometry[0]`" but that list has zero elements) that segfaults OCCT regardless of wire topology (verified directly: swapping `master_representation` to `.CURVE_3D.` while keeping the empty-list `SURFACE_CURVE` wrapper still crashes). This fixture instead lets the defective edge's `edge_geometry` slot reference the bare 3D `LINE` directly — no `SURFACE_CURVE` wrapper at all, which is the schema-clean way to say "this edge has no parametric representation whatsoever."
Reproducer recipe
Standard 4-edge rectangular wire on a `PLANE` (cf. Gp034/Gp045); the bottom `EDGE_CURVE`'s `edge_geometry` is a bare 3D `LINE` (not wrapped in `SURFACE_CURVE`), while the other three edges each carry a healthy `SURFACE_CURVE` + `PCURVE` pair.
Expected kernel behavior
synthesise the missing pcurve by projecting the 3D curve onto the host surface, or reject the input as malformed; never crash.
Notes
**See also**: Gp001, Gp042 (both crash via the confounder described above, not the missing-pcurve mechanism itself), Gp035 (missing-pcurve-requiring-projection sibling, different host surface). Synonyms: "missing pcurve on edge between two surfaces, no crash", "edge stored without 2D parameter curve on an otherwise valid wire", "no-curve-on-surface check reachable without a translator crash", "edge bounds a face with no associated pcurve geometry, wire is closed", "bare 3D curve as edge_geometry with no SURFACE_CURVE wrapper".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'EDGE_CURVE')contains(b'PLANE')count_entity_def(b'PCURVE') == 3count_entity_def(b'SURFACE_CURVE') == 3
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 4n_vertices_total == 8face[0].surface_type == "plane"
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/* Gp175: Bottom edge of an otherwise-healthy closed 4-edge rectangular wire on a PLANE references a bare 3D LINE (no SURFACE_CURVE wrapper, no PCURVE) as its edge_geometry. Isolated from Gp001/Gp042's crash confounder: an empty-list SURFACE_CURVE(...,(),.PCURVE_S1.) wrapper segfaults OCCT regardless of wire topology; omitting the wrapper entirely lets FixAddPCurve reconstruct the pcurve by projection. */ 3HEADER; 4FILE_DESCRIPTION(('Gp175'),'2;1'); 5FILE_NAME('Gp175.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=PLANE('',#4); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(10.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(10.0,5.0,0.0)); 19#10=CARTESIAN_POINT('',(0.0,5.0,0.0)); 20#11=VERTEX_POINT('',#7); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=VECTOR('',#15,10.0); 26#17=LINE('',#7,#16); 27#18=EDGE_CURVE('bottom_edge',#11,#12,#17,.T.); 28#19=DIRECTION('',(0.0,1.0,0.0)); 29#20=VECTOR('',#19,5.0); 30#21=LINE('',#8,#20); 31#22=CARTESIAN_POINT('',(10.0,0.0)); 32#23=DIRECTION('',(0.0,1.0)); 33#24=VECTOR('',#23,5.0); 34#25=LINE('',#22,#24); 35#26=DEFINITIONAL_REPRESENTATION('pc_right',(#25),#6); 36#27=PCURVE('right_pc',#5,#26); 37#28=SURFACE_CURVE('right_edge',#21,(#27),.PCURVE_S1.); 38#29=EDGE_CURVE('right_edge',#12,#13,#28,.T.); 39#30=DIRECTION('',(1.0,0.0,0.0)); 40#31=VECTOR('',#30,10.0); 41#32=LINE('',#10,#31); 42#33=CARTESIAN_POINT('',(0.0,5.0)); 43#34=DIRECTION('',(1.0,0.0)); 44#35=VECTOR('',#34,10.0); 45#36=LINE('',#33,#35); 46#37=DEFINITIONAL_REPRESENTATION('pc_top',(#36),#6); 47#38=PCURVE('top_pc',#5,#37); 48#39=SURFACE_CURVE('top_edge',#32,(#38),.PCURVE_S1.); 49#40=EDGE_CURVE('top_edge',#14,#13,#39,.T.); 50#41=DIRECTION('',(0.0,-1.0,0.0)); 51#42=VECTOR('',#41,5.0); 52#43=LINE('',#10,#42); 53#44=CARTESIAN_POINT('',(0.0,5.0)); 54#45=DIRECTION('',(0.0,-1.0)); 55#46=VECTOR('',#45,5.0); 56#47=LINE('',#44,#46); 57#48=DEFINITIONAL_REPRESENTATION('pc_left',(#47),#6); 58#49=PCURVE('left_pc',#5,#48); 59#50=SURFACE_CURVE('left_edge',#43,(#49),.PCURVE_S1.); 60#51=EDGE_CURVE('left_edge',#14,#11,#50,.T.); 61#52=ORIENTED_EDGE('',$,$,#18,.T.); 62#53=ORIENTED_EDGE('',$,$,#29,.T.); 63#54=ORIENTED_EDGE('',$,$,#40,.F.); 64#55=ORIENTED_EDGE('',$,$,#51,.T.); 65#56=EDGE_LOOP('',(#52,#53,#54,#55)); 66#57=FACE_OUTER_BOUND('',#56,.T.); 67#58=ADVANCED_FACE('',(#57),#5,.T.); 68#59=OPEN_SHELL('',(#58)); 69#60=SHELL_BASED_SURFACE_MODEL('',(#59)); 70#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 71#9051=PRODUCT('Gp175','Gp175','',(#9050)); 72#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 73#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 74#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 75#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 76#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 77#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 78#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 79#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 80#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 81#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#60),#9060); 82#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 83ENDSEC; 84END-ISO-10303-21;