step-examples/12-3c-faces/Tfa108.stp
Sources
- synthesized — no external source cited
Description
Natural boundary on trimmed surface
Reproducer recipe
Expected kernel behavior
Accept if the trimmed-surface construction can be evaluated: the ADVANCED_FACE's geometry is a RECTANGULAR_TRIMMED_SURFACE wrapping a TOROIDAL_SURFACE, bounded by an explicit 4-edge loop whose edges already carry PCURVEs expressed in the trimmed surface's own parameter space -- a valid, if unusual, schema-legal construction. Evaluate those pcurves against the trimmed surface directly (not the untrimmed torus) and build the face from them; if the trimmed-surface wrapper cannot be evaluated, reject the face with a diagnostic naming it, but never crash on a face whose geometry is a RECTANGULAR_TRIMMED_SURFACE around a periodic quadric basis.
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; 2HEADER; 3FILE_DESCRIPTION(('Tfa108 Natural boundary on RECTANGULAR_TRIMMED surface'),'2;1'); 4FILE_NAME('Tfa108.stp','2026-06-15T00:00:00',(''),(''), 5 'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=APPLICATION_CONTEXT('automotive_design'); 10#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2009,#1); 11/* === Base torus surface with full parameter bounds === */ 12#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0)); 13#11=DIRECTION('z',(0.0,0.0,1.0)); 14#12=DIRECTION('x',(1.0,0.0,0.0)); 15#13=AXIS2_PLACEMENT_3D('plc',#10,#11,#12); 16#14=TOROIDAL_SURFACE('base_torus',#13,5.0,2.0); 17/* === RectangularTrimmedSurface with restricted param bounds === */ 18/* Base surface: torus [u:0..2Ï, v:0..2Ï] 19 Trimmed bounds: [u:0.5..3.5, v:0.5..3.5] (restricted quarter-section) */ 20#20=RECTANGULAR_TRIMMED_SURFACE('trimmed_torus',#14,0.5,3.5,0.5,3.5,.T.,.T.); 21/* === Boundary loop on trimmed surface === */ 22#30=CARTESIAN_POINT('pt1',(6.5,0.0,0.0)); 23#31=VERTEX_POINT('v1',#30); 24#32=CARTESIAN_POINT('pt2',(7.5,0.0,0.0)); 25#33=VERTEX_POINT('v2',#32); 26#34=CARTESIAN_POINT('pt3',(7.5,2.0,0.0)); 27#35=VERTEX_POINT('v3',#34); 28#36=CARTESIAN_POINT('pt4',(6.5,2.0,0.0)); 29#37=VERTEX_POINT('v4',#36); 30/* === Edges with 2D curves in trimmed surface parameter space === */ 31#40=DIRECTION('d0',(1.0,0.0,0.0)); 32#41=VECTOR('v0',#40,1.0); 33#42=LINE('curve0',#30,#41); 34#43=PCURVE('pc0',#20,#42); 35#44=EDGE_CURVE('trim_e1',#31,#33,#43,.T.); 36#45=DIRECTION('d1',(0.0,1.0,0.0)); 37#46=VECTOR('v1',#45,1.0); 38#47=LINE('curve1',#32,#46); 39#48=PCURVE('pc1',#20,#47); 40#49=EDGE_CURVE('trim_e2',#33,#35,#48,.T.); 41#50=DIRECTION('d2',(-1.0,0.0,0.0)); 42#51=VECTOR('v2',#50,1.0); 43#52=LINE('curve2',#34,#51); 44#53=PCURVE('pc2',#20,#52); 45#54=EDGE_CURVE('trim_e3',#35,#37,#53,.T.); 46#55=DIRECTION('d3',(0.0,-1.0,0.0)); 47#56=VECTOR('v3',#55,1.0); 48#57=LINE('curve3',#36,#56); 49#58=PCURVE('pc3',#20,#57); 50#59=EDGE_CURVE('trim_e4',#37,#31,#58,.T.); 51#60=ORIENTED_EDGE('oe1',*,*,#44,.T.); 52#61=ORIENTED_EDGE('oe2',*,*,#49,.T.); 53#62=ORIENTED_EDGE('oe3',*,*,#54,.T.); 54#63=ORIENTED_EDGE('oe4',*,*,#59,.T.); 55#64=EDGE_LOOP('boundary',(#60,#61,#62,#63)); 56#65=FACE_OUTER_BOUND('outer',#64,.T.); 57#66=ADVANCED_FACE('trimmed_torus_face',(#65),#20,.T.); 58/* === Mandatory product chain === */ 59#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 60#9001=PRODUCT('Tfa108','Tfa108','',(#9000)); 61#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 62#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 63#9004=PRODUCT_DEFINITION('','',#9002,#9003); 64#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 65#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 66#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 67#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 68#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 69#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 70#9021=OPEN_SHELL('shell',(#66)); 71#9022=SHELL_BASED_SURFACE_MODEL('sbsm',(#9021)); 72#9023=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9022),#9010); 73#9024=SHAPE_DEFINITION_REPRESENTATION(#9005,#9023); 74ENDSEC; 75END-ISO-10303-21;