Twi150 — ShapeAnalysis_Wire.CheckLacking parallel-tangent

§12.3b

crash topology

Sources

Description

ShapeAnalysis_Wire.CheckLacking parallel-tangent

Reproducer recipe

Expected kernel behavior

At the junction (10,0,0) the two edges share a vertex exactly, and the outgoing direction (0.999875, 0.015625, 0) differs from the incoming (1,0,0) by only 0.0156 rad. A missing-edge check asks whether consecutive edges meet in position, not whether their tangents agree, so nothing may be inserted here; a near-parallel tangent is a smoothness observation and must be reported separately, if at all. The defects a consistency check should catch on this file are edges 2, 3 and 4, whose declared `LINE` directions do not pass through their own end vertices — edge 2's line reaches y about 0.156 at x=20 while its end vertex sits at y=0.1.

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi150 - ShapeAnalysis_Wire.CheckLacking parallel-tangent
3 * Defect: adjacent edges with tangents parallel to within tolerance;
4 * CheckLacking's tangent-discontinuity test returns false-negative, failing
5 * to detect the lack of sufficient tangent continuity between segments.
6 */
7HEADER;
8FILE_DESCRIPTION(('Twi150 test case','ShapeAnalysis_Wire.CheckLacking parallel-tangent'),'2;1');
9FILE_NAME('Twi150.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13#1=APPLICATION_CONTEXT('automotive_design');
14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
15#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#11=DIRECTION('',(0.0,0.0,1.0));
17#12=DIRECTION('',(1.0,0.0,0.0));
18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
19
20/* Plane containing the wire */
21#20=PLANE('',#13);
22
23/* Wire with adjacent edges having nearly parallel tangents at junction.
24   Edge1: from (0,0,0) to (10,0,0) - direction (1,0,0)
25   Edge2: from (10,0,0) to (20,2,0) - direction nearly (1,0,0), angle within tolerance
26   The tangent angle discontinuity is within tolerance but CheckLacking should detect it. */
27
28#100=CARTESIAN_POINT('',(0.0,0.0,0.0));
29#101=VERTEX_POINT('',#100);
30
31#102=CARTESIAN_POINT('',(10.0,0.0,0.0));
32#103=VERTEX_POINT('',#102);
33
34/* Next point: nearly same direction, angle within tolerance (~0.01 rad) */
35#104=CARTESIAN_POINT('',(20.0,0.1,0.0));
36#105=VERTEX_POINT('',#104);
37
38#106=CARTESIAN_POINT('',(15.0,5.0,0.0));
39#107=VERTEX_POINT('',#106);
40
41/* Edge 1: (0,0,0) to (10,0,0) - direction (1,0,0) */
42#120=DIRECTION('',(1.0,0.0,0.0));
43#121=LINE('',#100,#120);
44#122=EDGE_CURVE('',#101,#103,#121,.T.);
45
46/* Edge 2: (10,0,0) to (20,0.1,0.0) - tangent nearly parallel to edge1 */
47#123=DIRECTION('',(0.999875,0.015625,0.0));
48#124=LINE('',#102,#123);
49#125=EDGE_CURVE('',#103,#105,#124,.T.);
50
51/* Edge 3: from (20,0.1,0.0) to (15,5,0.0) */
52#126=DIRECTION('',(-0.196116,0.98058,0.0));
53#127=LINE('',#104,#126);
54#128=EDGE_CURVE('',#105,#107,#127,.T.);
55
56/* Edge 4: back to origin from (15,5,0) to (0,0,0) */
57#129=DIRECTION('',(-0.534522,-0.845154,0.0));
58#130=LINE('',#106,#129);
59#131=EDGE_CURVE('',#107,#101,#130,.T.);
60
61/* Edge loop with parallel-tangent discontinuity */
62#140=ORIENTED_EDGE('',*,*,#122,.T.);
63#141=ORIENTED_EDGE('',*,*,#125,.T.);
64#142=ORIENTED_EDGE('',*,*,#128,.T.);
65#143=ORIENTED_EDGE('',*,*,#131,.T.);
66#144=EDGE_LOOP('',(#140,#141,#142,#143));
67#145=FACE_OUTER_BOUND('',#144,.T.);
68#146=ADVANCED_FACE('',(#145),#20,.T.);
69#8000=OPEN_SHELL('',(#146));
70
71/* PRODUCT CHAIN - Mandatory */
72#9000=PRODUCT_CONTEXT('',#1,'mechanical');
73#9001=PRODUCT('Twi150','Twi150','',(#9000));
74#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
75#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
76#9004=PRODUCT_DEFINITION('','',#9002,#9003);
77#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
78#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
79#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
80#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
81#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
82#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
83#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#8000));
84#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
85#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
86ENDSEC;
87END-ISO-10303-21;