step-examples/12-7-pmi/Pmi102.stp
Sources
- 16-iso-spec ISO 10303-242 §feature_definition_schema (groove)
- CAx-IF Feature Information Recommended Practice §groove on cylindrical host
- bug-reporter language: "AP242 groove cuts through cylinder centerline", "groove depth wraps around axis", "circumferential groove depth too deep".
Description
AP242 `groove` on a cylindrical host has a radial depth that must be strictly less than the cylinder radius (otherwise the groove cuts through the cylinder centerline and "wraps" past the axis to reappear on the other side, leaving a self-intersecting feature definition). A producer that emits a groove with `radial_depth=15 mm` on a cylinder of radius 10 mm leaves a feature whose constructive evaluation is non-manifold. Receivers diverge: some clamp the depth to the radius, some accept and produce a self-intersecting solid, some reject. Bug-reporter language: "groove depth exceeds host radius", "GROOVE cuts past cylinder centreline", "AP242 groove wrap-around".
Reproducer recipe
a cylindrical host face with radius 10; a `SHAPE_ASPECT('GROOVE',..)` with `groove_radial_depth=15.0 mm` and `host_cylinder_radius=10.0 mm`.
Expected kernel behavior
validate radial depth < host radius for circumferential grooves; reject as inconsistent or clamp with a deterministic warning. Never accept silently.
Notes
**See also**: Pmi091, Pmi100, Pmi101. Synonyms: "GROOVE depth wrap-around", "groove cuts through cylinder centerline", "AP242 circumferential groove too deep", "radial depth exceeds host radius".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(6) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b'GROOVE')contains(b'CYLINDRICAL_SURFACE')contains(b'depth_DEFECT_exceeds_radius')
Tier-3 assertions
n_faces_total == 1face[0].surface_type == "cylinder"face[0].quadric.radius == 10.0edge[0].curve_type == "circle"edge[0].analytic.radius == 10.0edge[2].curve_type == "circle"edge[2].analytic.radius == 10.0
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Pmi102: GROOVE on cylinder (radius=10 mm) with groove_radial_depth=15 mm; depth exceeds host radius â groove cuts through centerline; receiver must reject or clamp with deterministic warning */ 3HEADER; 4FILE_DESCRIPTION(('Pmi102'),'2;1'); 5FILE_NAME('Pmi102.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=CARTESIAN_POINT('',(0.0,0.0,30.0)); 12#3=DIRECTION('',(0.0,0.0,1.0)); 13#4=DIRECTION('',(1.0,0.0,0.0)); 14#5=AXIS2_PLACEMENT_3D('',#1,#3,#4); 15#6=AXIS2_PLACEMENT_3D('',#2,#3,#4); 16#7=CYLINDRICAL_SURFACE('',#5,10.0); 17#8=CARTESIAN_POINT('',(10.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(10.0,0.0,30.0)); 19#10=VERTEX_POINT('',#8); 20#11=VERTEX_POINT('',#9); 21#12=CIRCLE('',#5,10.0); 22#13=CIRCLE('',#6,10.0); 23#14=EDGE_CURVE('',#10,#10,#12,.T.); 24#15=EDGE_CURVE('',#11,#11,#13,.T.); 25#16=DIRECTION('',(0.0,0.0,1.0)); 26#17=VECTOR('',#16,30.0); 27#18=LINE('',#8,#17); 28#19=EDGE_CURVE('',#10,#11,#18,.T.); 29#20=ORIENTED_EDGE('',$,$,#14,.T.); 30#21=ORIENTED_EDGE('',$,$,#19,.T.); 31#22=ORIENTED_EDGE('',$,$,#15,.F.); 32#23=ORIENTED_EDGE('',$,$,#19,.F.); 33#24=EDGE_LOOP('',(#20,#21,#22,#23)); 34#25=FACE_OUTER_BOUND('',#24,.T.); 35#26=ADVANCED_FACE('host_cyl_face',(#25),#7,.T.); 36#27=OPEN_SHELL('',(#26)); 37#28=SHELL_BASED_SURFACE_MODEL('',(#27)); 38#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 39#9051=PRODUCT('Pmi102','Pmi102','',(#9050)); 40#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 41#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 42#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 43#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 44#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 45#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 46#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 47#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 48#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 49#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#28),#9060); 50#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 51#9063=SHAPE_ASPECT('host_cyl_face','',#9055,.T.); 52#9064=SHAPE_ASPECT('GROOVE','circumferential groove depth defect',#9055,.T.); 53#9065=DIMENSIONAL_SIZE(#9064,'groove_width'); 54#9066=MEASURE_REPRESENTATION_ITEM('groove_width',LENGTH_MEASURE(3.0),#9056); 55#9067=DIMENSIONAL_SIZE(#9064,'groove_radial_depth'); 56#9068=MEASURE_REPRESENTATION_ITEM('depth_DEFECT_exceeds_radius',LENGTH_MEASURE(15.0),#9056); 57#9069=DIMENSIONAL_SIZE(#9064,'host_cylinder_radius'); 58#9070=MEASURE_REPRESENTATION_ITEM('host_cylinder_radius',LENGTH_MEASURE(10.0),#9056); 59#9071=SHAPE_ASPECT_RELATIONSHIP('groove_on_cyl','groove on cylinder host',#9063,#9064); 60#9072=GEOMETRIC_ITEM_SPECIFIC_USAGE('groove_gisu',$,#9064,#9061,#26); 61ENDSEC; 62END-ISO-10303-21;