step-examples/12-7-pmi/Pmi162.stp
Sources
- Pattern-mined from NIST MBE PMI test suite / CAx-IF FTC/CTC AP242 files (public-domain / describe-only — pattern only, no bytes copied)
- audit/mining_nist_mbxif_2026-07.md #6.
Description
The corpus's semantic-tolerance coverage is limited to position, perpendicularity, and flatness. AP242 distinguishes six further tolerance subtypes on their own entity names: `cylindricity_tolerance`, `roundness_tolerance` (circularity), `straightness_tolerance` (form; no datum), and the datum-referenced `angularity_tolerance`, `concentricity_tolerance`, `symmetry_tolerance`. A reader that maps unknown subtypes onto a generic tolerance loses the symbol semantics (and, for the datum-referenced three, the datum link).
Reproducer recipe
AP242 file; a `DATUM_SYSTEM` on datum A; feature aspects (cylinder, angled face, slot); emit each of `CYLINDRICITY_TOLERANCE`, `ROUNDNESS_TOLERANCE`, `STRAIGHTNESS_TOLERANCE` (no datum) and `ANGULARITY_TOLERANCE`, `CONCENTRICITY_TOLERANCE`, `SYMMETRY_TOLERANCE` (referencing the datum system), each with a real `LENGTH_MEASURE_WITH_UNIT` magnitude.
Expected kernel behavior
Recognize each tolerance subtype distinctly; a reader that maps unknown subtypes onto a generic `geometric_tolerance` loses the symbol semantics.
Notes
Semantic-PMI carrier geometry is a `GEOMETRIC_CURVE_SET` (single point → one loaded vertex, like Pmi010). Synonyms: "cylindricity tolerance dropped", "circularity roundness tolerance lost", "straightness tolerance not parsed", "angularity concentricity symmetry tolerance absent", "GD&T symbol subtype mapped to generic tolerance". Provenance tier: bytes-only — semantic GD&T tolerance metadata is oracle-invisible at BRep load (OCC loads only the carrier geometry); pattern-mined, not yet mutation-verified.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'CYLINDRICITY_TOLERANCE')contains(b'ROUNDNESS_TOLERANCE')contains(b'STRAIGHTNESS_TOLERANCE')contains(b'ANGULARITY_TOLERANCE')contains(b'CONCENTRICITY_TOLERANCE')contains(b'SYMMETRY_TOLERANCE')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
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/* Pmi162: Six additional AP242 tolerance subtypes each on its own entity name: CYLINDRICITY_TOLERANCE, ROUNDNESS_TOLERANCE (circularity), STRAIGHTNESS_TOLERANCE (form; no datum), plus datum-referenced ANGULARITY_TOLERANCE, CONCENTRICITY_TOLERANCE, SYMMETRY_TOLERANCE; generic-tolerance mapping loses the symbol semantics; GEOMETRIC_CURVE_SET IS model entity â OCC loads the point as one vertex */ 3HEADER; 4FILE_DESCRIPTION(('Pmi162'),'2;1'); 5FILE_NAME('Pmi162.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=GEOMETRIC_CURVE_SET('',(#1)); 12#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 13#9051=PRODUCT('Pmi162','Pmi162','',(#9050)); 14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 16#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 25#9063=DATUM('A','primary datum',#9055,.T.,'A'); 26#9064=DATUM_REFERENCE_ELEMENT('',$,#9063); 27#9065=DATUM_REFERENCE_COMPARTMENT('',$,#9064); 28#9066=DATUM_SYSTEM('datum_system_A','',#9055,.T.,(#9065)); 29#9067=SHAPE_ASPECT('cylinder','cylindrical feature',#9055,.T.); 30#9068=SHAPE_ASPECT('angled_face','angled planar feature',#9055,.T.); 31#9069=SHAPE_ASPECT('slot','slot median feature',#9055,.T.); 32#9070=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.05),#9056); 33#9071=CYLINDRICITY_TOLERANCE('cylindricity','0.05 cylindricity',#9070,#9067); 34#9072=ROUNDNESS_TOLERANCE('circularity','0.05 circularity',#9070,#9067); 35#9073=STRAIGHTNESS_TOLERANCE('straightness','0.05 straightness',#9070,#9067); 36#9074=ANGULARITY_TOLERANCE('angularity','0.05 angularity wrt A',#9070,#9068,#9066); 37#9075=CONCENTRICITY_TOLERANCE('concentricity','0.05 concentricity wrt A',#9070,#9067,#9066); 38#9076=SYMMETRY_TOLERANCE('symmetry','0.05 symmetry wrt A',#9070,#9069,#9066); 39ENDSEC; 40END-ISO-10303-21;