Twi213 — ShapeAnalysis_Wire.CheckGap3d using-pcurve-distance

§12.3b

topology

Sources

Description

ShapeAnalysis_Wire.CheckGap3d using-pcurve-distance

Reproducer recipe

Expected kernel behavior

Check pcurve continuity independently of 3D vertex sharing: edges `pcurve_gap_e0` and `pcurve_gap_e1` both meet at 3D vertex (5.0,0.0,0.0) exactly, but edge 0's pcurve ends at u=5.0 while edge 1's pcurve starts at u=7.0 — a genuine 2-unit gap in surface parameter space that the shared 3D vertex hides. A kernel must evaluate and compare pcurve endpoints in parameter space as a check separate from 3D vertex identity, and either re-trim edge 1's pcurve to start at u=5.0 or reject the face citing the parametric discontinuity.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi213: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 3 edges on PLANE; PLANE: normal +Z, origin (0,0,0); pcurve_gap_e0: LINE V0(0,0,0)->V1(5,0,0), pcurve LINE in UV from (0,0) direction (1,0) — pcurve ends at UV=(5,0); pcurve_gap_e1: LINE V1(5,0,0)->V2(10,0,0), pcurve LINE in UV STARTS at (7,0) instead of (5,0) — UV gap of 2 units IS the defect; both edges share 3D junction vertex V1=(5,0,0) — 3D continuity valid; CheckGap3d 3D-only check misses the UV pcurve gap IS the mechanism; close_e2: V2(10,0,0)->V0(0,0,0) closes the wire; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi213'),'2;1');
5FILE_NAME('Twi213.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(5.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(10.0,0.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=VECTOR('',#13,5.0);
24#15=LINE('',#12,#14);
25#16=CARTESIAN_POINT('',(0.0,0.0));
26#17=DIRECTION('',(1.0,0.0));
27#18=VECTOR('',#17,5.0);
28#19=LINE('',#16,#18);
29#20=DEFINITIONAL_REPRESENTATION('',(#19),#*);
30#21=PCURVE('',#5,#20);
31#22=SURFACE_CURVE('',#15,(#21),.PCURVE_S1.);
32#23=EDGE_CURVE('pcurve_gap_e0',#7,#9,#22,.T.);
33#24=ORIENTED_EDGE('',*,*,#23,.T.);
34#25=CARTESIAN_POINT('',(5.0,0.0,0.0));
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=VECTOR('',#26,5.0);
37#28=LINE('',#25,#27);
38#29=CARTESIAN_POINT('',(7.0,0.0));
39#30=DIRECTION('',(1.0,0.0));
40#31=VECTOR('',#30,5.0);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('',(#32),#*);
43#34=PCURVE('',#5,#33);
44#35=SURFACE_CURVE('',#28,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('pcurve_gap_e1',#9,#11,#35,.T.);
46#37=ORIENTED_EDGE('',*,*,#36,.T.);
47#38=CARTESIAN_POINT('',(10.0,0.0,0.0));
48#39=DIRECTION('',(-1.0,0.0,0.0));
49#40=VECTOR('',#39,10.0);
50#41=LINE('',#38,#40);
51#42=CARTESIAN_POINT('',(10.0,0.0));
52#43=DIRECTION('',(-1.0,0.0));
53#44=VECTOR('',#43,10.0);
54#45=LINE('',#42,#44);
55#46=DEFINITIONAL_REPRESENTATION('',(#45),#*);
56#47=PCURVE('',#5,#46);
57#48=SURFACE_CURVE('',#41,(#47),.PCURVE_S1.);
58#49=EDGE_CURVE('close_e2',#11,#7,#48,.T.);
59#50=ORIENTED_EDGE('',*,*,#49,.T.);
60#51=EDGE_LOOP('',(#24,#37,#50));
61#52=GEOMETRIC_CURVE_SET('',(#51));
62#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
63#9051=PRODUCT('Twi213','Twi213','',(#9050));
64#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
65#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
66#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
67#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
68#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
69#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
70#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
71#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
72#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
73#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#52),#9060);
74#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
75ENDSEC;
76END-ISO-10303-21;