Tsh247 — Two faces sharing one real `EDGE_CURVE` with genuinely tangent (G1) geometry: default read-path continuity encoding

§12.3a shells (sub-class: sewing merged-edge continuity encoding — `sew-merged-edge-continuity-encoding`)

P2 — spec deviation (no data loss)

topology

Sources

Description

An `OPEN_SHELL` with TWO `ADVANCED_FACE`s — a `CYLINDRICAL_SURFACE` (radius 5, axis +Z) quarter-patch spanning theta:[0,90deg], z:[0,10], and a `PLANE` at x=5 (normal +X, matching the cylinder's own outward radial normal at theta=0) spanning y:[-5,0], z:[0,10]. Both faces reference the SAME `EDGE_CURVE` entity for their shared boundary (the vertical generatrix line x=5,y=0,z:[0,10]) — the corpus's standard shared-edge-reuse convention. A plane tangent to a cylinder along one of its own generatrices is the textbook G1 (smooth, non-sharp) shared-edge case, unlike Bo025's mis-tagged-G1-edge framing (that class inverted: this fixture's edge should end up correctly classified, testing the *encode* path itself).

Reproducer recipe

Two `ADVANCED_FACE`s (one `CYLINDRICAL_SURFACE`, one `PLANE` tangent to it along a generatrix) sharing exactly one `EDGE_CURVE` entity for their common boundary, with the plane's normal matching the cylinder's own outward radial normal along that line.

Expected kernel behavior

on default STEP import, classify the shared edge's continuity as tangent (G1) rather than leaving it at the un-encoded sharp-corner default (C0), and expose that classification via the standard continuity-query API (the loaded shape’s per-edge continuity query).

Notes

Live-verified (this worktree's OCP/OCCT 7.8.1): read via plain the plain default reader path()` — NO the sewing stage scaffold needed for this class, since the two faces already share the identical `EDGE_CURVE` entity structurally. The shared edge (found by walking both faces' wires and confirming identical edge identity via `IsSame`) queried via the loaded shape’s per-edge continuity query(edge, face1, face2)` returns tangent-continuous (G1) — NOT the un-encoded default positional-only (C0) — confirming the import-time continuity-encoding pass genuinely ran on the default read path and correctly classified the tangent join. A control comparison (a sharp-corner box control cube written to STEP and read back the identical way, all 12 edges genuinely sharp 90deg corners) keeps EVERY shared edge positional-only (C0), ruling out a false positive (the import-time continuity-encoding pass is not simply stamping every shared edge non-C0 regardless of actual geometry). This closes a class that was previously mis-classified as unobservable/oracle-invisible. Synonyms: "the import-time continuity-encoding pass default read path", "shared edge continuity classification STEP import", "plane tangent to cylinder G1 shared edge", "the loaded shape’s per-edge continuity query tangent-continuous (G1) merged edge", "read.encoderegularity.angle default continuity encoding".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(15) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh247: OPEN_SHELL with TWO ADVANCED_FACEs — a CYLINDRICAL_SURFACE (radius 5, axis +Z) quarter-patch and a PLANE at x=5 (normal +X, matching the cylinder's own outward radial normal at theta=0) — sharing the SAME EDGE_CURVE entity (the vertical generatrix line x=5,y=0,z:[0,10]) as their common boundary; the shared edge is genuinely G1-tangent (plane-tangent-to-cylinder), not a sharp crease, so BRepLib::EncodeRegularity (invoked unconditionally on the default STEP read path via ShapeFix::EncodeRegularity) must classify it as smooth */
3HEADER;
4FILE_DESCRIPTION(('Tsh247'),'2;1');
5FILE_NAME('Tsh247.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('',(5.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(5.0,0.0,10.0));
12#3=VERTEX_POINT('',#1);
13#4=VERTEX_POINT('',#2);
14#5=DIRECTION('',(0.0,0.0,1.0));
15#6=VECTOR('',#5,10.0);
16#7=LINE('',#1,#6);
17#8=EDGE_CURVE('',#3,#4,#7,.T.);
18#9=CARTESIAN_POINT('',(0.0,0.0,0.0));
19#10=DIRECTION('',(0.0,0.0,1.0));
20#11=DIRECTION('',(1.0,0.0,0.0));
21#12=AXIS2_PLACEMENT_3D('',#9,#10,#11);
22#13=CYLINDRICAL_SURFACE('',#12,5.0);
23#14=CARTESIAN_POINT('',(0.0,5.0,10.0));
24#15=CARTESIAN_POINT('',(0.0,5.0,0.0));
25#16=VERTEX_POINT('',#14);
26#17=VERTEX_POINT('',#15);
27#18=DIRECTION('',(0.0,0.0,-1.0));
28#19=VECTOR('',#18,10.0);
29#20=LINE('',#14,#19);
30#21=EDGE_CURVE('',#16,#17,#20,.T.);
31#22=CARTESIAN_POINT('',(0.0,0.0,10.0));
32#23=AXIS2_PLACEMENT_3D('',#22,#10,#11);
33#24=CIRCLE('',#23,5.0);
34#25=EDGE_CURVE('',#4,#16,#24,.T.);
35#26=CARTESIAN_POINT('',(0.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#26,#10,#11);
37#28=CIRCLE('',#27,5.0);
38#29=EDGE_CURVE('',#17,#3,#28,.T.);
39#30=ORIENTED_EDGE('',$,$,#8,.T.);
40#31=ORIENTED_EDGE('',$,$,#25,.T.);
41#32=ORIENTED_EDGE('',$,$,#21,.T.);
42#33=ORIENTED_EDGE('',$,$,#29,.T.);
43#34=EDGE_LOOP('',(#30,#31,#32,#33));
44#35=FACE_OUTER_BOUND('',#34,.T.);
45#36=ADVANCED_FACE('',(#35),#13,.T.);
46#37=CARTESIAN_POINT('',(5.0,0.0,0.0));
47#38=DIRECTION('',(1.0,0.0,0.0));
48#39=DIRECTION('',(0.0,0.0,1.0));
49#40=AXIS2_PLACEMENT_3D('',#37,#38,#39);
50#41=PLANE('',#40);
51#42=CARTESIAN_POINT('',(5.0,-5.0,10.0));
52#43=CARTESIAN_POINT('',(5.0,-5.0,0.0));
53#44=VERTEX_POINT('',#42);
54#45=VERTEX_POINT('',#43);
55#46=DIRECTION('',(-1.0,0.0,0.0));
56#47=DIRECTION('',(0.0,-1.0,0.0));
57#48=VECTOR('',#47,5.0);
58#49=LINE('',#2,#48);
59#50=EDGE_CURVE('',#4,#44,#49,.T.);
60#51=VECTOR('',#18,10.0);
61#52=LINE('',#42,#51);
62#53=EDGE_CURVE('',#44,#45,#52,.T.);
63#54=DIRECTION('',(0.0,1.0,0.0));
64#55=VECTOR('',#54,5.0);
65#56=LINE('',#43,#55);
66#57=EDGE_CURVE('',#45,#3,#56,.T.);
67#58=ORIENTED_EDGE('',$,$,#8,.F.);
68#59=ORIENTED_EDGE('',$,$,#57,.F.);
69#60=ORIENTED_EDGE('',$,$,#53,.F.);
70#61=ORIENTED_EDGE('',$,$,#50,.F.);
71#62=EDGE_LOOP('',(#58,#59,#60,#61));
72#63=FACE_OUTER_BOUND('',#62,.T.);
73#64=ADVANCED_FACE('',(#63),#41,.T.);
74#65=OPEN_SHELL('tsh247_tangent_shared_edge_shell',(#36,#64));
75#66=SHELL_BASED_SURFACE_MODEL('',(#65));
76#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
77#9051=PRODUCT('Tsh247','Tsh247','',(#9050));
78#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
79#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
80#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
81#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
82#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
83#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
84#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
85#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
86#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
87#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#66),#9060);
88#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
89ENDSEC;
90END-ISO-10303-21;