Tb006 — Edge length sub-tolerance squared in 2D pcurve length

§12.4 (sub-class: comparison-threshold mismatch)

topology

Sources

Description

Sister to Tb005 but in pcurve space. Pcurve domain length is the parameter range; some kernels test pcurve degeneracy by comparing parameter range to `tol*tol_param`. A pcurve with parameter range 1e-4 on a face with declared `tol = 1e-3` is alive at `tol_param = sqrt(tol) ≈ 3.16e-2` but degenerate at `tol_param = tol*tol = 1e-6` (different sign/squareroot policies). Receiver A keeps the edge; receiver B drops it.

Reproducer recipe

An `EDGE_CURVE` on an `ADVANCED_FACE` with a `SURFACE_CURVE.associated_geometry` `PCURVE` whose parameter range is exactly 1e-4 in the U direction; declared uncertainty 1e-3.

Expected kernel behavior

Heal and accept: normalize the pcurve degeneracy criterion to a single documented invariant; preserve consistency across re-imports.

Notes

Synonyms: "pcurve length below tol*tol", "edge length squared comparison in 2D", "pcurve domain length squared vs linear tolerance", "small edge dropped under squared 2D check".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) 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/* Tb006: EDGE_CURVE with PCURVE whose parameter range is 1e-4 (U-direction); declared tolerance 1.0E-3; pcurve degeneracy threshold tol*tol_param = 1e-6 kills the edge under one policy, while sqrt(tol) ≈ 3.16e-2 keeps it under another; receiver A keeps edge; receiver B drops it; small ADVANCED_FACE on a PLANE for tier-3 face[0].area assertion */
3HEADER;
4FILE_DESCRIPTION(('Tb006'),'2;1');
5FILE_NAME('Tb006.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=DIRECTION('',(0.0,0.0,1.0));
11#3=DIRECTION('',(1.0,0.0,0.0));
12#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
13#5=PLANE('',#4);
14#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#7=CARTESIAN_POINT('',(0.0003,0.0,0.0));
16#8=CARTESIAN_POINT('',(0.0003,0.0003,0.0));
17#9=CARTESIAN_POINT('',(0.0,0.0003,0.0));
18#10=VERTEX_POINT('',#6);
19#11=VERTEX_POINT('',#7);
20#12=VERTEX_POINT('',#8);
21#13=VERTEX_POINT('',#9);
22#14=DIRECTION('',(1.0,0.0,0.0));
23#15=VECTOR('',#14,0.0003);
24#16=LINE('',#6,#15);
25#17=EDGE_CURVE('e_bot',#10,#11,#16,.T.);
26#18=DIRECTION('',(0.0,1.0,0.0));
27#19=VECTOR('',#18,0.0003);
28#20=LINE('',#7,#19);
29#21=EDGE_CURVE('e_rgt',#11,#12,#20,.T.);
30#22=DIRECTION('',(1.0,0.0,0.0));
31#23=VECTOR('',#22,0.0003);
32#24=LINE('',#9,#23);
33#25=EDGE_CURVE('e_top',#13,#12,#24,.T.);
34#26=DIRECTION('',(0.0,1.0,0.0));
35#27=VECTOR('',#26,0.0003);
36#28=LINE('',#6,#27);
37#29=EDGE_CURVE('e_lft',#10,#13,#28,.T.);
38#30=ORIENTED_EDGE('',$,$,#17,.T.);
39#31=ORIENTED_EDGE('',$,$,#21,.T.);
40#32=ORIENTED_EDGE('',$,$,#25,.F.);
41#33=ORIENTED_EDGE('',$,$,#29,.F.);
42#34=EDGE_LOOP('',(#30,#31,#32,#33));
43#35=FACE_OUTER_BOUND('',#34,.T.);
44#36=ADVANCED_FACE('',(#35),#5,.T.);
45#37=CARTESIAN_POINT('',(20.0,0.0,0.0));
46#38=DIRECTION('',(0.0,0.0,1.0));
47#39=DIRECTION('',(1.0,0.0,0.0));
48#40=AXIS2_PLACEMENT_3D('',#37,#38,#39);
49#41=CYLINDRICAL_SURFACE('',#40,1.0);
50#42=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('','2D'));
51#43=CARTESIAN_POINT('pcurve_uv_start',(0.0,0.0));
52#44=DIRECTION('pcurve_udir',(1.0,0.0));
53#45=VECTOR('pcurve_urange_1e-4',#44,0.0001);
54#46=LINE('pcurve_line',#43,#45);
55#47=DEFINITIONAL_REPRESENTATION('pcurve_range_1e-4',(#46),#42);
56#48=PCURVE('pcurve_param_range_1e-4',#41,#47);
57#49=CARTESIAN_POINT('',(1.0,0.0,0.0));
58#50=CARTESIAN_POINT('',(0.999999995,9.99999998333E-05,0.0));
59#51=VERTEX_POINT('',#49);
60#52=VERTEX_POINT('',#50);
61#53=DIRECTION('',(0.0,1.0,0.0));
62#54=VECTOR('',#53,0.0001);
63#55=LINE('',#49,#54);
64#56=SURFACE_CURVE('',#55,(#48),.PCURVE_S1.);
65#57=EDGE_CURVE('pcurve_sub_tol_squared',#51,#52,#56,.T.);
66#58=OPEN_SHELL('',(#36));
67#59=SHELL_BASED_SURFACE_MODEL('',(#58));
68#60=APPLICATION_CONTEXT('automotive_design');
69#61=PRODUCT_CONTEXT('',#60,'mechanical');
70#62=PRODUCT('Tb006','Tb006','',(#61));
71#63=PRODUCT_DEFINITION_FORMATION('','',#62);
72#64=PRODUCT_DEFINITION_CONTEXT('part definition',#60,'design');
73#65=PRODUCT_DEFINITION('','',#63,#64);
74#66=PRODUCT_DEFINITION_SHAPE('','',#65);
75#67=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
76#68=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
77#69=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
78#70=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#67,'distance_accuracy_value','pcurve_domain_length_squared_tol_test');
79#71=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#70))GLOBAL_UNIT_ASSIGNED_CONTEXT((#67,#68,#69))REPRESENTATION_CONTEXT('ctx','3D'));
80#72=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#59),#71);
81#73=SHAPE_DEFINITION_REPRESENTATION(#66,#72);
82ENDSEC;
83END-ISO-10303-21;