step-examples/12-2a-pcurves/Gp188.stp
Sources
- occt-coverage GAP audit, work packet D2 item `stp-compcurve-disconnected`, `exchange/problems.json` `stp-compcurve-disconnected` (`StepToTopoDS_TranslateCompositeCurve::Init`, `StepToTopoDS_TranslateCompositeCurve.cxx:275-278` — `sfw->FixConnected(preci)
- StatusConnected(FAIL)` → warning only, translation still returns `True`).
Sender
deduced — OCCT uncovered-class sweep, work packet D2.
Description
A `PLANE`-hosted face's sole boundary is a single self-closed edge whose 3D geometry is a `COMPOSITE_CURVE` with `closed_curve=.T.` (DECLARED closed) built from three `LINE` segments forming an approximate triangular rim: `(0,0,0)`→`(6,0,0)`→`(6,4,0)`→`(0.004,0,0)`. The third segment's actual endpoint `(0.004,0,0)` misses the first segment's true start `(0,0,0)` by 4mm — a genuine post-reorder connectivity gap specifically at the WRAP-AROUND CLOSURE, distinct from Gp034 (a 2-segment, open, `LINE`+`LINE` composite curve used as one edge of a 4-edge rectangle, with a 5mm INTERIOR gap between its two segments, not at a declared closure).
Reproducer recipe
`COMPOSITE_CURVE('...', (seg1, seg2, seg3), .T.)` with three `COMPOSITE_CURVE_SEGMENT`s wrapping `LINE`s `(0,0,0)→(6,0,0)`, `(6,0,0)→(6,4,0)`, `(6,4,0)→(0.004,0,0)`; single self-loop `EDGE_CURVE` (same start/end `VERTEX_POINT` at the true origin) using the composite curve as its 3D geometry, forming the sole `FACE_OUTER_BOUND`.
Expected kernel behavior
the composite-curve translation stage::Init` detects the closure-seam gap via `FixConnected`, and either closes it within tolerance, reports the failure with a clear diagnostic, or refuses to declare the wire closed.
Notes
**See also**: Gp034 (this class's original witness — 2-segment interior gap on an open composite curve inside a larger 4-edge face, distinct geometry and distinct gap location from this fixture). Both fixtures verified to reach the composite-curve translation stage (not orphaned in a `GEOMETRIC_CURVE_SET` per M096's rejected pattern). Tier-3 introspection shows `n_edges_total=0`/`n_vertices_total=0` despite `n_faces_total=1` — the same signature Gp034 already ships with (the composite-curve edge/vertex explorer undercounts relative to the face's own reachability), a pre-existing pattern in this corpus, not a new concern introduced here.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
contains(b'triangular_rim_closure_gap')contains(b'COMPOSITE_CURVE(')contains(b'(0.004,0.0,0.0)')
Tier-3 assertions
shape_null == Falsen_faces_total == 1
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/* Gp188: COMPOSITE_CURVE (closed_curve=.T.) of three LINE segments forming an approximate triangular rim: (0,0,0)->(6,0,0)->(6,4,0)->(0.004,0,0) -- segment 3 ends 4mm short of segment 1's true start (0,0,0), a wrap-around CLOSURE gap (not Gp034's interior 2-segment gap); single self-loop EDGE_CURVE forms the sole boundary of an ADVANCED_FACE */ 3HEADER; 4FILE_DESCRIPTION(('Gp188'),'2;1'); 5FILE_NAME('Gp188.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('',(6.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(6.0,4.0,0.0)); 19#10=CARTESIAN_POINT('',(0.004,0.0,0.0)); 20#11=VERTEX_POINT('',#7); 21#12=DIRECTION('',(1.0,0.0,0.0)); 22#13=VECTOR('',#12,6.0); 23#14=LINE('',#7,#13); 24#15=DIRECTION('',(0.0,1.0,0.0)); 25#16=VECTOR('',#15,4.0); 26#17=LINE('',#8,#16); 27#18=DIRECTION('',(-0.831879499129,-0.554956303622,0.0)); 28#19=VECTOR('',#18,7.20777469126); 29#20=LINE('',#9,#19); 30#21=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#14); 31#22=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#17); 32#23=COMPOSITE_CURVE_SEGMENT(.CONTINUOUS.,.T.,#20); 33#24=COMPOSITE_CURVE('triangular_rim_closure_gap',(#21,#22,#23),.T.); 34#25=CARTESIAN_POINT('',(0.0,0.0)); 35#26=DIRECTION('',(1.0,0.0)); 36#27=VECTOR('',#26,6.0); 37#28=LINE('',#25,#27); 38#29=DEFINITIONAL_REPRESENTATION('gp188_pc_def',(#28),#6); 39#30=PCURVE('gp188_uv',#5,#29); 40#31=SURFACE_CURVE('triangular_rim',#24,(#30),.PCURVE_S1.); 41#32=EDGE_CURVE('rim_edge',#11,#11,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=EDGE_LOOP('',(#33)); 44#35=FACE_OUTER_BOUND('',#34,.T.); 45#36=ADVANCED_FACE('',(#35),#5,.T.); 46#37=OPEN_SHELL('',(#36)); 47#38=SHELL_BASED_SURFACE_MODEL('',(#37)); 48#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 49#9051=PRODUCT('Gp188','Gp188','',(#9050)); 50#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 51#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 52#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 53#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 54#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 55#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 56#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 57#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 58#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 59#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#38),#9060); 60#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 61ENDSEC; 62END-ISO-10303-21;