step-examples/12-3b-wires/Twi212.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixIntersectingEdges trim-aware-intersection
Reproducer recipe
Expected kernel behavior
Both edges are built on the same infinite line, so their underlying curves coincide everywhere, but one is restricted to parameters [1,5] and the other to [6,10]. Intersect the restricted domains, never the underlying curves: two edges sharing a curve with disjoint parameter intervals do not meet, and no split point may be introduced — least of all at parameter 0, which lies outside both edges. Report contact only over the range where the two restrictions actually overlap.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi212: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 4 edges on PLANE; PLANE: normal +Z, origin (0,0,0); base LINE: origin (0,0,0), direction +X (unit), length parameter t in [0,10]; trim_e0: EDGE_CURVE V0(1,0,0)->V1(5,0,0) using base LINE TRIMMED to t=[1,5]; trim_e1: EDGE_CURVE V2(6,0,0)->V3(10,0,0) using base LINE TRIMMED to t=[6,10]; base LINE passes through t=0 (origin) outside both trim ranges; FixIntersectingEdges splits at base-curve intersection t=0 outside trimmed domains IS the defect â erroneous split in non-overlapping trims; close_e2 (V1->V2) and close_e3 (V3->V0via loop) close the wire; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi212'),'2;1'); 5FILE_NAME('Twi212.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=DIRECTION('',(1.0,0.0,0.0)); 17#8=VECTOR('',#7,1.0); 18#9=LINE('',#6,#8); 19#10=CARTESIAN_POINT('',(1.0,0.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(5.0,0.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(6.0,0.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(10.0,0.0,0.0)); 26#17=VERTEX_POINT('',#16); 27#18=TRIMMED_CURVE('',#9,(PARAMETER_VALUE(1.0)),(PARAMETER_VALUE(5.0)),.T.,.PARAMETER.); 28#19=EDGE_CURVE('trim_e0',#11,#13,#18,.T.); 29#20=ORIENTED_EDGE('',*,*,#19,.T.); 30#21=TRIMMED_CURVE('',#9,(PARAMETER_VALUE(6.0)),(PARAMETER_VALUE(10.0)),.T.,.PARAMETER.); 31#22=EDGE_CURVE('trim_e1',#15,#17,#21,.T.); 32#23=ORIENTED_EDGE('',*,*,#22,.T.); 33#24=CARTESIAN_POINT('',(5.0,0.0,0.0)); 34#25=DIRECTION('',(1.0,0.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#24,#26); 37#28=CARTESIAN_POINT('',(5.0,0.0)); 38#29=DIRECTION('',(1.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=LINE('',#28,#30); 41#32=DEFINITIONAL_REPRESENTATION('',(#31),#*); 42#33=PCURVE('',#5,#32); 43#34=SURFACE_CURVE('',#27,(#33),.PCURVE_S1.); 44#35=EDGE_CURVE('close_e2',#13,#15,#34,.T.); 45#36=ORIENTED_EDGE('',*,*,#35,.T.); 46#37=CARTESIAN_POINT('',(10.0,0.0,0.0)); 47#38=DIRECTION('',(-1.0,0.0,0.0)); 48#39=VECTOR('',#38,9.0); 49#40=LINE('',#37,#39); 50#41=CARTESIAN_POINT('',(10.0,0.0)); 51#42=DIRECTION('',(-1.0,0.0)); 52#43=VECTOR('',#42,9.0); 53#44=LINE('',#41,#43); 54#45=DEFINITIONAL_REPRESENTATION('',(#44),#*); 55#46=PCURVE('',#5,#45); 56#47=SURFACE_CURVE('',#40,(#46),.PCURVE_S1.); 57#48=EDGE_CURVE('close_e3',#17,#11,#47,.T.); 58#49=ORIENTED_EDGE('',*,*,#48,.T.); 59#50=EDGE_LOOP('',(#20,#36,#23,#49)); 60#51=GEOMETRIC_CURVE_SET('',(#50)); 61#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 62#9051=PRODUCT('Twi212','Twi212','',(#9050)); 63#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 64#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 65#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 66#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 67#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 68#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 69#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 70#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 71#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 72#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#51),#9060); 73#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 74ENDSEC; 75END-ISO-10303-21;