step-examples/12-3c-faces/Tfa107.stp
Sources
- synthesized — no external source cited
Description
High-curvature surface spot detection
Reproducer recipe
Expected kernel behavior
Reject with a diagnostic naming the offending edge: edge4_v_rev's LINE references a DIRECTION entity directly as its direction attribute instead of wrapping it in a VECTOR (its sibling edges all correctly use a VECTOR built from their DIRECTION) -- a type mismatch against the schema's requirement that a Line's direction be a Vector. Detect the wrong-typed reference during entity resolution and reject the malformed edge with a diagnostic naming it; never dereference a wrongly-typed entity and let the process crash.
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/* Tfa107 - ShapeAnalysis_CheckSmallFace.CheckSpotFace surface-curvature variant 3 * Small face on a high-curvature surface (sphere of radius 0.001). 4 * CheckSpotFace's threshold uses absolute area not curvature-scaled. 5 * Expected: should account for local curvature when assessing if face is spot/degenerate. 6 */ 7HEADER; 8FILE_DESCRIPTION(('Tfa107 test case','Small face on high-curvature sphere (radius 0.001)'),'2;1'); 9FILE_NAME('Tfa107.stp','2026-06-15T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 11ENDSEC; 12DATA; 13#1=APPLICATION_CONTEXT('automotive_design'); 14#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1); 15/* === High-curvature sphere: radius = 0.001 mm === */ 16#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#11=DIRECTION('',(0.0,0.0,1.0));#12=DIRECTION('',(1.0,0.0,0.0)); 18#13=AXIS2_PLACEMENT_3D('',#10,#11,#12); 19#14=SPHERICAL_SURFACE('tiny_sphere',#13,0.001); 20/* === Boundary vertices: rectangular patch on sphere surface === */ 21#20=CARTESIAN_POINT('',(0.0009,0.0,0.0005));#21=VERTEX_POINT('',#20); 22#22=CARTESIAN_POINT('',(0.0009,0.00009,0.0005));#23=VERTEX_POINT('',#22); 23#24=CARTESIAN_POINT('',(0.00095,0.00009,0.00055));#25=VERTEX_POINT('',#24); 24#26=CARTESIAN_POINT('',(0.00095,0.0,0.00055));#27=VERTEX_POINT('',#26); 25/* === 2D curves in parametric space for small patch === */ 26#30=DIRECTION('',(1.0,0.0,0.0));#31=VECTOR('',#30,0.00001);#32=LINE('',#20,#31); 27#33=PCURVE('',#14,#32); 28#34=EDGE_CURVE('edge1_u_const',#21,#23,#33,.T.); 29#35=DIRECTION('',(0.0,1.0,0.0));#36=VECTOR('',#35,0.00001);#37=LINE('',#23,#36); 30#38=PCURVE('',#14,#37); 31#39=EDGE_CURVE('edge2_v_const',#23,#25,#38,.T.); 32#40=DIRECTION('',(-1.0,0.0,0.0));#41=VECTOR('',#40,0.00001);#42=LINE('',#25,#41); 33#43=PCURVE('',#14,#42); 34#44=EDGE_CURVE('edge3_u_rev',#25,#27,#43,.T.); 35#45=DIRECTION('',(0.0,-1.0,0.0));#46=VECTOR('',#45,0.00001);#47=LINE('',#27,#45); 36#48=PCURVE('',#14,#47); 37#49=EDGE_CURVE('edge4_v_rev',#27,#21,#48,.T.); 38#50=ORIENTED_EDGE('oe1',*,*,#34,.T.);#51=ORIENTED_EDGE('oe2',*,*,#39,.T.); 39#52=ORIENTED_EDGE('oe3',*,*,#44,.T.);#53=ORIENTED_EDGE('oe4',*,*,#49,.T.); 40#54=EDGE_LOOP('boundary_loop',(#50,#51,#52,#53)); 41#55=FACE_OUTER_BOUND('',#54,.T.); 42#60=ADVANCED_FACE('tiny_sphere_patch',(#55),#14,.T.); 43/* === Mandatory product chain === */ 44#9000=PRODUCT_CONTEXT('',#1,'mechanical'); 45#9001=PRODUCT('Tfa107','Tfa107','',(#9000)); 46#9002=PRODUCT_DEFINITION_FORMATION('','',#9001); 47#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 48#9004=PRODUCT_DEFINITION('','',#9002,#9003); 49#9005=PRODUCT_DEFINITION_SHAPE('','',#9004); 50#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 51#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 52#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 53#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value',''); 54#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D')); 55#9021=OPEN_SHELL('shell',(#60)); 56#9022=SHELL_BASED_SURFACE_MODEL('sbsm',(#9021)); 57#9023=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9022),#9010); 58#9024=SHAPE_DEFINITION_REPRESENTATION(#9005,#9023); 59ENDSEC; 60END-ISO-10303-21;