step-examples/12-2c-surfaces/Gs044.stp
Sources
- 16-iso-spec ISO 10303-42 §INTERSECTION_CURVE
Description
An INTERSECTION_CURVE entity holds the curve of intersection between two surfaces. The spec models the intersection as a single CURVE_ON_SURFACE pair, but in general two surfaces (e.g. a plane and a torus, or two non-coaxial cylinders) intersect along *multiple disjoint branches*. A single INTERSECTION_CURVE entity cannot faithfully represent this; the producer chose one branch arbitrarily, silently dropping the others.
Reproducer recipe
TOROIDAL_SURFACE major=10, minor=3; PLANE z=0. The intersection is two concentric circles at radius 7 and 13. The fixture's INTERSECTION_CURVE represents only the outer branch (r=13).
Expected kernel behavior
detect that the producer's basis curve does not cover the full surface intersection and warn; or reject INTERSECTION_CURVE if the kernel expects a single branch and detect-time analysis disagrees.
Notes
**See also**: Gp- pcurve entries. Synonyms: "INTERSECTION_CURVE represents only one branch", "torus-plane intersection has two circles only one stored", "multiple disjoint intersection branches dropped", "single CURVE_ON_SURFACE pair cannot represent multi-branch intersection", "producer chose one branch silently dropping others".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(12) ifc=schema_n/a
Byte assertions
contains(b'INTERSECTION_CURVE(')contains(b'TOROIDAL_SURFACE(')contains(b'CIRCLE(\'outer_branch\'')
Tier-3 assertions
load == "ok"face[0].surface_type == "torus"face[0].quadric.major_radius == 10.0face[0].quadric.minor_radius == 3.0edge[0].curve_type == "circle"edge[0].analytic.radius == 13.0
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs044: TOROIDAL_SURFACE (major=10, minor=3) IS ADVANCED_FACE.face_geometry; INTERSECTION_CURVE holding only outer circle (r=13) of two-branch torus-plane intersection IS curve_3d of defect EDGE_CURVE; single-branch INTERSECTION_CURVE IS wired into face topology; shape(1) (live OCC heals) */ 3HEADER; 4FILE_DESCRIPTION(('Gs044'),'2;1'); 5FILE_NAME('Gs044.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('gs044_tor_ax',#1,#2,#3); 14#5=TOROIDAL_SURFACE('gs044_torus',#4,10.0,3.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=DIRECTION('',(0.0,0.0,1.0)); 18#9=DIRECTION('',(1.0,0.0,0.0)); 19#10=AXIS2_PLACEMENT_3D('gs044_circ_ax',#7,#8,#9); 20#11=CIRCLE('outer_branch',#10,13.0); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=DIRECTION('',(0.0,0.0,1.0)); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=AXIS2_PLACEMENT_3D('gs044_pl_ax',#12,#13,#14); 25#16=PLANE('gs044_plane',#15); 26#17=CARTESIAN_POINT('',(0.0,0.0)); 27#18=DIRECTION('',(1.0,0.0)); 28#19=VECTOR('',#18,1.0); 29#20=LINE('',#17,#19); 30#21=DEFINITIONAL_REPRESENTATION('pcdef_tor',(#20),#6); 31#22=PCURVE('pc_torus',#5,#21); 32#23=CARTESIAN_POINT('',(0.0,0.0)); 33#24=DIRECTION('',(1.0,0.0)); 34#25=VECTOR('',#24,1.0); 35#26=LINE('',#23,#25); 36#27=DEFINITIONAL_REPRESENTATION('pcdef_pl',(#26),#6); 37#28=PCURVE('pc_plane',#16,#27); 38#29=INTERSECTION_CURVE('gs044_ic',#11,(#22,#28),.CURVE_3D.); 39#30=CARTESIAN_POINT('',(13.0,0.0,0.0)); 40#31=CARTESIAN_POINT('',(0.0,13.0,0.0)); 41#32=CARTESIAN_POINT('',(-13.0,0.0,0.0)); 42#33=CARTESIAN_POINT('',(0.0,-13.0,0.0)); 43#34=VERTEX_POINT('',#30); 44#35=VERTEX_POINT('',#31); 45#36=VERTEX_POINT('',#32); 46#37=VERTEX_POINT('',#33); 47#38=CARTESIAN_POINT('',(0.0,0.0)); 48#39=DIRECTION('',(1.0,0.0)); 49#40=VECTOR('',#39,1.0); 50#41=LINE('',#38,#40); 51#42=DEFINITIONAL_REPRESENTATION('pcdef_e0',(#41),#6); 52#43=PCURVE('pc_e0',#5,#42); 53#44=SURFACE_CURVE('sc_e0',#29,(#43),.PCURVE_S1.); 54#45=EDGE_CURVE('ec_e0',#34,#35,#44,.T.); 55#46=CARTESIAN_POINT('',(0.0,13.0,0.0)); 56#47=DIRECTION('',(-1.0,0.0,0.0)); 57#48=VECTOR('',#47,13.0); 58#49=LINE('',#46,#48); 59#50=CARTESIAN_POINT('',(0.0,1.0)); 60#51=DIRECTION('',(-1.0,0.0)); 61#52=VECTOR('',#51,1.0); 62#53=LINE('',#50,#52); 63#54=DEFINITIONAL_REPRESENTATION('pcdef',(#53),#6); 64#55=PCURVE('pc',#5,#54); 65#56=SURFACE_CURVE('sc',#49,(#55),.PCURVE_S1.); 66#57=EDGE_CURVE('ec',#35,#36,#56,.T.); 67#58=CARTESIAN_POINT('',(-13.0,0.0,0.0)); 68#59=DIRECTION('',(0.0,-1.0,0.0)); 69#60=VECTOR('',#59,13.0); 70#61=LINE('',#58,#60); 71#62=CARTESIAN_POINT('',(-1.0,0.0)); 72#63=DIRECTION('',(0.0,-1.0)); 73#64=VECTOR('',#63,1.0); 74#65=LINE('',#62,#64); 75#66=DEFINITIONAL_REPRESENTATION('pcdef',(#65),#6); 76#67=PCURVE('pc',#5,#66); 77#68=SURFACE_CURVE('sc',#61,(#67),.PCURVE_S1.); 78#69=EDGE_CURVE('ec',#36,#37,#68,.T.); 79#70=CARTESIAN_POINT('',(0.0,-13.0,0.0)); 80#71=DIRECTION('',(1.0,0.0,0.0)); 81#72=VECTOR('',#71,13.0); 82#73=LINE('',#70,#72); 83#74=CARTESIAN_POINT('',(0.0,-1.0)); 84#75=DIRECTION('',(1.0,0.0)); 85#76=VECTOR('',#75,1.0); 86#77=LINE('',#74,#76); 87#78=DEFINITIONAL_REPRESENTATION('pcdef',(#77),#6); 88#79=PCURVE('pc',#5,#78); 89#80=SURFACE_CURVE('sc',#73,(#79),.PCURVE_S1.); 90#81=EDGE_CURVE('ec',#37,#34,#80,.T.); 91#82=ORIENTED_EDGE('',$,$,#45,.T.); 92#83=ORIENTED_EDGE('',$,$,#57,.T.); 93#84=ORIENTED_EDGE('',$,$,#69,.T.); 94#85=ORIENTED_EDGE('',$,$,#81,.T.); 95#86=EDGE_LOOP('',(#82,#83,#84,#85)); 96#87=FACE_OUTER_BOUND('',#86,.T.); 97#88=ADVANCED_FACE('',(#87),#5,.T.); 98#89=OPEN_SHELL('',(#88)); 99#90=SHELL_BASED_SURFACE_MODEL('',(#89)); 100#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 101#9051=PRODUCT('Gs044','Gs044','',(#9050)); 102#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 103#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 104#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 105#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 106#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 107#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 108#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 109#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 110#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 111#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#90),#9060); 112#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 113ENDSEC; 114END-ISO-10303-21;