Tfa217 — curve_copy_trimming

§12.3c

topology

Sources

Description

curve_copy_trimming

Reproducer recipe

Expected kernel behavior

the defect edge's pcurve is a trimmed curve over another trimmed curve — an outer range of [8,12] over an inner range of [5,15]. Reducing a nested trim to its basis curve must COMPOSE the ranges, taking their intersection; discarding the inner bounds and keeping only the outer collapses the effective range and silently changes which part of the curve the edge refers to.

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/* Tfa217: CLOSED_SHELL: single ADVANCED_FACE on PLANE; defect edge (bottom): SURFACE_CURVE with nested TRIMMED_CURVE pcurve; outer TRIMMED_CURVE [8,12] wraps inner TRIMMED_CURVE [5,15] wraps base LINE (len=20); UnionPCurves line 1876: BasisCurve extraction unwraps outer → finds inner TRIMMED_CURVE; second unwrap discards inner bounds [5,15]; effective range collapses; three plain edges complete the quad EDGE_LOOP; defect IS on live traversal path; no orphaned entities */
3HEADER;
4FILE_DESCRIPTION(('Tfa217'),'2;1');
5FILE_NAME('Tfa217.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=CARTESIAN_POINT('',(10.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(10.0,5.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,5.0,0.0));
19#10=VERTEX_POINT('',#6);
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=DIRECTION('',(1.0,0.0,0.0));
24#15=VECTOR('',#14,10.0);
25#16=LINE('',#6,#15);
26#17=CARTESIAN_POINT('',(0.,0.));
27#18=DIRECTION('',(1.,0.));
28#19=VECTOR('',#18,20.);
29#20=LINE('',#17,#19);
30#21=TRIMMED_CURVE('',#20,(PARAMETER_VALUE(5.)),(PARAMETER_VALUE(15.)),.T.,.PARAMETER.);
31#22=TRIMMED_CURVE('',#21,(PARAMETER_VALUE(8.)),(PARAMETER_VALUE(12.)),.T.,.PARAMETER.);
32#23=GEOMETRIC_REPRESENTATION_CONTEXT(2);
33#24=DEFINITIONAL_REPRESENTATION('',(#22),#23);
34#25=PCURVE('',#5,#24);
35#26=SURFACE_CURVE('',#16,(#25),.PCURVE_S1.);
36#27=EDGE_CURVE('nested_trim_defect',#10,#11,#26,.T.);
37#28=DIRECTION('',(0.0,1.0,0.0));
38#29=VECTOR('',#28,5.0);
39#30=LINE('',#7,#29);
40#31=EDGE_CURVE('',#11,#12,#30,.T.);
41#32=DIRECTION('',(-1.0,0.0,0.0));
42#33=VECTOR('',#32,10.0);
43#34=LINE('',#8,#33);
44#35=EDGE_CURVE('',#12,#13,#34,.T.);
45#36=DIRECTION('',(0.0,-1.0,0.0));
46#37=VECTOR('',#36,5.0);
47#38=LINE('',#9,#37);
48#39=EDGE_CURVE('',#13,#10,#38,.T.);
49#40=ORIENTED_EDGE('',*,*,#27,.T.);
50#41=ORIENTED_EDGE('',$,$,#31,.T.);
51#42=ORIENTED_EDGE('',$,$,#35,.T.);
52#43=ORIENTED_EDGE('',$,$,#39,.T.);
53#44=EDGE_LOOP('',(#40,#41,#42,#43));
54#45=FACE_OUTER_BOUND('',#44,.T.);
55#46=ADVANCED_FACE('',(#45),#5,.T.);
56#47=CLOSED_SHELL('',(#46));
57#48=MANIFOLD_SOLID_BREP('',#47);
58#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
59#9051=PRODUCT('Tfa217','Tfa217','',(#9050));
60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
62#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
69#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#48),#9060);
70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
71ENDSEC;
72END-ISO-10303-21;