Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Add prismatic section transition lab emitter

Yuechen Lid6e6641aab81
diff --git a/Aetheris.Firmament.FrictionLab/CIRLab/PrismaticSectionTransitionEmitterLab.cs b/Aetheris.Firmament.FrictionLab/CIRLab/PrismaticSectionTransitionEmitterLab.cs
new file mode 100644
index 00000000..e4b1105e
--- /dev/null
+++ b/Aetheris.Firmament.FrictionLab/CIRLab/PrismaticSectionTransitionEmitterLab.cs
@@ -0,0 +1,577 @@
+using Aetheris.Kernel.Core.Brep;
+using Aetheris.Kernel.Core.Geometry;
+using Aetheris.Kernel.Core.Geometry.Curves;
+using Aetheris.Kernel.Core.Geometry.Surfaces;
+using Aetheris.Kernel.Core.Math;
+using Aetheris.Kernel.Core.Step242;
+using Aetheris.Kernel.Core.Topology;
+
+namespace Aetheris.Firmament.FrictionLab.CIRLab;
+
+public sealed record PrismaticSection(double Z, IReadOnlyList<(double X, double Y)> OuterLoop, bool HasHoles = false, bool HasArcs = false, int OuterLoopCount = 1);
+
+public sealed record PrismaticCorrespondenceMap(IReadOnlyList<int> VertexMap)
+{
+ public static PrismaticCorrespondenceMap Identity(int vertexCount) => new(Enumerable.Range(0, vertexCount).ToArray());
+}
+
+public sealed record PrismaticSectionTransitionCase(
+ string Name,
+ IReadOnlyList<PrismaticSection> Sections,
+ PrismaticCorrespondenceMap? Correspondence);
+
+public sealed record PrismaticTransitionTopologySummary(
+ bool BodyProduced,
+ int SectionCount,
+ int VertexCount,
+ int EdgeCount,
+ int BottomProfileEdgeCount,
+ int TopProfileEdgeCount,
+ int TransitionEdgeCount,
+ int CapFaceCount,
+ int TransitionFaceCount,
+ int StableIntervalFaceCount,
+ int ChangedIntervalFaceCount,
+ int FaceCount,
+ int PlanarFaceCount,
+ int CylindricalFaceCount,
+ int LoopCount,
+ int CoedgeCount,
+ string Bounds);
+
+public sealed record PrismaticSectionTransitionStepSummary(
+ bool Exported,
+ IReadOnlyList<string> PresentMarkers,
+ IReadOnlyList<string> MissingRequiredMarkers,
+ IReadOnlyList<string> AbsentMarkers,
+ IReadOnlyList<string> UnexpectedPresentMarkers);
+
+public sealed record PrismaticSectionTransitionRow(
+ string CaseName,
+ LabProfileStatus Status,
+ bool Succeeded,
+ PrismaticTransitionTopologySummary Topology,
+ PrismaticSectionTransitionStepSummary Step,
+ IReadOnlyList<string> Diagnostics,
+ string Recommendation);
+
+public static class PrismaticSectionTransitionEmitterLab
+{
+ private const double Tol = 1e-9;
+
+ public static readonly string[] AllowedRecommendations =
+ [
+ "prismatic-section-transition-ready-for-production-evaluation",
+ "prismatic-section-transition-needs-profile-validation-hardening",
+ "prismatic-section-transition-needs-correspondence-hardening",
+ "prismatic-section-transition-invalid-rejected",
+ "prismatic-section-transition-deferred",
+ ];
+
+ private static readonly string[] RequiredStepMarkers = ["ISO-10303-21", "MANIFOLD_SOLID_BREP", "ADVANCED_FACE", "PLANE"];
+ private static readonly string[] ForbiddenStepMarkers = ["CYLINDRICAL_SURFACE", "BREP_WITH_VOIDS"];
+
+ public static IReadOnlyList<PrismaticSectionTransitionRow> RunAll() =>
+ [
+ Run(RectangleToInsetRectangle()),
+ Run(ThreeSectionStableThenInsetRectangle()),
+ Run(ScaledPentagon()),
+ Run(new("invalid-non-increasing-z", [RectangleSection(0, 10, 8), RectangleSection(0, 8, 6)], PrismaticCorrespondenceMap.Identity(4))),
+ Run(new("invalid-mismatched-vertex-count", [RectangleSection(0, 10, 8), RegularPolygonSection(1, 5, 5)], PrismaticCorrespondenceMap.Identity(4))),
+ Run(new("invalid-missing-correspondence", [RectangleSection(0, 10, 8), RectangleSection(1, 8, 6)], null)),
+ Run(new("invalid-self-intersecting-profile", [new PrismaticSection(0, [(0, 0), (2, 2), (0, 2), (2, 0)]), RectangleSection(1, 8, 6)], PrismaticCorrespondenceMap.Identity(4))),
+ Run(new("deferred-holes", [RectangleSection(0, 10, 8) with { HasHoles = true }, RectangleSection(1, 8, 6) with { HasHoles = true }], PrismaticCorrespondenceMap.Identity(4))),
+ Run(new("deferred-line-arc", [RectangleSection(0, 10, 8) with { HasArcs = true }, RectangleSection(1, 8, 6) with { HasArcs = true }], PrismaticCorrespondenceMap.Identity(4))),
+ Run(new("deferred-multiple-loops", [RectangleSection(0, 10, 8) with { OuterLoopCount = 2 }, RectangleSection(1, 8, 6) with { OuterLoopCount = 2 }], PrismaticCorrespondenceMap.Identity(4))),
+ ];
+
+ public static PrismaticSectionTransitionCase RectangleToInsetRectangle() =>
+ new("rectangle-to-inset-rectangle", [RectangleSection(0, 10, 8), RectangleSection(1, 8, 6)], PrismaticCorrespondenceMap.Identity(4));
+
+ public static PrismaticSectionTransitionCase ThreeSectionStableThenInsetRectangle() =>
+ new("three-section-stable-plus-transition", [RectangleSection(0, 10, 8), RectangleSection(5, 10, 8), RectangleSection(6, 8, 6)], PrismaticCorrespondenceMap.Identity(4));
+
+ public static PrismaticSectionTransitionCase ScaledPentagon() =>
+ new("scaled-pentagon", [RegularPolygonSection(0, 5, 5), RegularPolygonSection(2, 4, 5)], PrismaticCorrespondenceMap.Identity(5));
+
+ public static PrismaticSectionTransitionRow Run(PrismaticSectionTransitionCase c)
+ {
+ var diagnostics = new List<string> { "edge-prismatic-x1-lab-started" };
+ var validation = Validate(c, diagnostics);
+ if (validation.Status != LabProfileStatus.Succeeded)
+ {
+ return Stop(c.Name, validation.Status, diagnostics, validation.Recommendation);
+ }
+
+ diagnostics.Add("edge-prismatic-x1-correspondence-created");
+ for (var i = 0; i < c.Sections.Count - 1; i++)
+ {
+ diagnostics.Add("edge-prismatic-x1-transition-interval-created");
+ }
+
+ var built = PrismaticSectionTransitionEmitter.TryEmit(c.Sections, c.Correspondence!);
+ if (built.Body is null)
+ {
+ diagnostics.Add($"edge-prismatic-x1-transition-face-emission-failed:{built.Diagnostic}");
+ return Stop(c.Name, LabProfileStatus.Failed, diagnostics, "prismatic-section-transition-needs-profile-validation-hardening");
+ }
+
+ diagnostics.Add("edge-prismatic-x1-cap-faces-created");
+ diagnostics.Add("edge-prismatic-x1-transition-faces-created");
+ diagnostics.Add("edge-prismatic-x1-body-created");
+ diagnostics.Add("edge-prismatic-x1-no-air-edge-sweep-used");
+ diagnostics.Add("edge-prismatic-x1-no-brep-bounded-chamfer-used");
+ diagnostics.Add("edge-prismatic-x1-no-topology-graft-used");
+ diagnostics.Add("edge-prismatic-x1-no-3d-boolean-used");
+
+ var topology = SummarizeTopology(built.Body, c.Sections);
+ var step = SummarizeStep(built.Body);
+ var stepSucceeded = step.Exported && step.MissingRequiredMarkers.Count == 0 && step.UnexpectedPresentMarkers.Count == 0;
+ diagnostics.Add(stepSucceeded ? "edge-prismatic-x1-step-smoke-succeeded" : "edge-prismatic-x1-step-smoke-failed:markers");
+
+ var n = c.Sections[0].OuterLoop.Count;
+ var sectionCount = c.Sections.Count;
+ var expectedFaces = 2 + ((sectionCount - 1) * n);
+ var topologySucceeded = topology.BodyProduced
+ && topology.SectionCount == sectionCount
+ && topology.VertexCount == sectionCount * n
+ && topology.EdgeCount == (sectionCount * n) + ((sectionCount - 1) * n)
+ && topology.TransitionEdgeCount == (sectionCount - 1) * n
+ && topology.CapFaceCount == 2
+ && topology.TransitionFaceCount == (sectionCount - 1) * n
+ && topology.FaceCount == expectedFaces
+ && topology.PlanarFaceCount == expectedFaces
+ && topology.CylindricalFaceCount == 0
+ && topology.LoopCount == expectedFaces
+ && topology.CoedgeCount == (2 * n) + (4 * (sectionCount - 1) * n);
+
+ return new(
+ c.Name,
+ LabProfileStatus.Succeeded,
+ topologySucceeded && stepSucceeded,
+ topology,
+ step,
+ StableDiagnostics(diagnostics),
+ topologySucceeded && stepSucceeded
+ ? "prismatic-section-transition-ready-for-production-evaluation"
+ : "prismatic-section-transition-needs-profile-validation-hardening");
+ }
+
+ private static (LabProfileStatus Status, string Recommendation) Validate(PrismaticSectionTransitionCase c, List<string> diagnostics)
+ {
+ if (c.Sections.Count is < 2 or > 3)
+ {
+ diagnostics.Add("edge-prismatic-x1-invalid-section-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+
+ foreach (var section in c.Sections)
+ {
+ if (section.HasHoles)
+ {
+ diagnostics.Add("edge-prismatic-x1-holes-deferred");
+ return (LabProfileStatus.Deferred, "prismatic-section-transition-deferred");
+ }
+
+ if (section.HasArcs)
+ {
+ diagnostics.Add("edge-prismatic-x1-line-arc-deferred");
+ return (LabProfileStatus.Deferred, "prismatic-section-transition-deferred");
+ }
+
+ if (section.OuterLoopCount != 1)
+ {
+ diagnostics.Add("edge-prismatic-x1-multiple-loops-deferred");
+ return (LabProfileStatus.Deferred, "prismatic-section-transition-deferred");
+ }
+
+ if (!ValidateProfile(section, out var profileDiagnostic))
+ {
+ diagnostics.Add(profileDiagnostic);
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+
+ diagnostics.Add("edge-prismatic-x1-section-validated");
+ }
+
+ for (var i = 0; i < c.Sections.Count; i++)
+ {
+ if (!double.IsFinite(c.Sections[i].Z))
+ {
+ diagnostics.Add("edge-prismatic-x1-invalid-section-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+
+ if (i > 0 && c.Sections[i].Z <= c.Sections[i - 1].Z + Tol)
+ {
+ diagnostics.Add("edge-prismatic-x1-non-increasing-sections-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+ }
+
+ var vertexCount = c.Sections[0].OuterLoop.Count;
+ if (c.Sections.Any(s => s.OuterLoop.Count != vertexCount))
+ {
+ diagnostics.Add("edge-prismatic-x1-mismatched-vertex-count-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+
+ var orientation = SignedArea(c.Sections[0].OuterLoop) > 0d;
+ if (c.Sections.Skip(1).Any(s => (SignedArea(s.OuterLoop) > 0d) != orientation))
+ {
+ diagnostics.Add("edge-prismatic-x1-invalid-profile-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-invalid-rejected");
+ }
+
+ if (c.Correspondence is null || c.Correspondence.VertexMap.Count != vertexCount || !c.Correspondence.VertexMap.SequenceEqual(Enumerable.Range(0, vertexCount)))
+ {
+ diagnostics.Add("edge-prismatic-x1-missing-correspondence-rejected");
+ return (LabProfileStatus.Failed, c.Correspondence is null ? "prismatic-section-transition-invalid-rejected" : "prismatic-section-transition-needs-correspondence-hardening");
+ }
+
+ if (!AllTransitionFacesPlanar(c.Sections))
+ {
+ diagnostics.Add("edge-prismatic-x1-invalid-profile-rejected");
+ return (LabProfileStatus.Failed, "prismatic-section-transition-needs-profile-validation-hardening");
+ }
+
+ return (LabProfileStatus.Succeeded, "");
+ }
+
+ private static bool ValidateProfile(PrismaticSection section, out string diagnostic)
+ {
+ diagnostic = "edge-prismatic-x1-invalid-profile-rejected";
+ var loop = section.OuterLoop;
+ if (loop.Count < 4 || !double.IsFinite(section.Z))
+ {
+ return false;
+ }
+
+ foreach (var point in loop)
+ {
+ if (!double.IsFinite(point.X) || !double.IsFinite(point.Y))
+ {
+ return false;
+ }
+ }
+
+ for (var i = 0; i < loop.Count; i++)
+ {
+ var next = (i + 1) % loop.Count;
+ if (Distance(loop[i], loop[next]) <= Tol)
+ {
+ return false;
+ }
+ }
+
+ if (Math.Abs(SignedArea(loop)) <= Tol)
+ {
+ return false;
+ }
+
+ for (var i = 0; i < loop.Count; i++)
+ {
+ var i2 = (i + 1) % loop.Count;
+ for (var j = i + 1; j < loop.Count; j++)
+ {
+ var j2 = (j + 1) % loop.Count;
+ if (i == j || i2 == j || i == j2)
+ {
+ continue;
+ }
+
+ if (i == 0 && j2 == 0)
+ {
+ continue;
+ }
+
+ if (SegmentsIntersect(loop[i], loop[i2], loop[j], loop[j2]))
+ {
+ return false;
+ }
+ }
+ }
+
+ return true;
+ }
+
+ private static PrismaticTransitionTopologySummary SummarizeTopology(BrepBody body, IReadOnlyList<PrismaticSection> sections)
+ {
+ var faceCount = body.Topology.Faces.Count();
+ var planarFaceCount = body.Topology.Faces.Count(f => body.GetFaceSurface(f.Id).Kind == SurfaceGeometryKind.Plane);
+ var cylindricalFaceCount = body.Topology.Faces.Count(f => body.GetFaceSurface(f.Id).Kind == SurfaceGeometryKind.Cylinder);
+ var n = sections[0].OuterLoop.Count;
+ var stableFaces = 0;
+ var changedFaces = 0;
+ for (var s = 0; s < sections.Count - 1; s++)
+ {
+ for (var i = 0; i < n; i++)
+ {
+ var next = (i + 1) % n;
+ if (SamePoint(sections[s].OuterLoop[i], sections[s + 1].OuterLoop[i]) && SamePoint(sections[s].OuterLoop[next], sections[s + 1].OuterLoop[next]))
+ {
+ stableFaces++;
+ }
+ else
+ {
+ changedFaces++;
+ }
+ }
+ }
+
+ var allX = sections.SelectMany(s => s.OuterLoop.Select(p => p.X)).ToArray();
+ var allY = sections.SelectMany(s => s.OuterLoop.Select(p => p.Y)).ToArray();
+ return new(
+ true,
+ sections.Count,
+ body.Topology.Vertices.Count(),
+ body.Topology.Edges.Count(),
+ n,
+ n,
+ (sections.Count - 1) * n,
+ 2,
+ (sections.Count - 1) * n,
+ stableFaces,
+ changedFaces,
+ faceCount,
+ planarFaceCount,
+ cylindricalFaceCount,
+ body.Topology.Loops.Count(),
+ body.Topology.Coedges.Count(),
+ FormattableString.Invariant($"[{allX.Min():0.###},{allY.Min():0.###},{sections.Min(s => s.Z):0.###}]..[{allX.Max():0.###},{allY.Max():0.###},{sections.Max(s => s.Z):0.###}]"));
+ }
+
+ private static bool AllTransitionFacesPlanar(IReadOnlyList<PrismaticSection> sections)
+ {
+ var n = sections[0].OuterLoop.Count;
+ for (var s = 0; s < sections.Count - 1; s++)
+ {
+ for (var i = 0; i < n; i++)
+ {
+ var next = (i + 1) % n;
+ var p0 = new Point3D(sections[s].OuterLoop[i].X, sections[s].OuterLoop[i].Y, sections[s].Z);
+ var p1 = new Point3D(sections[s].OuterLoop[next].X, sections[s].OuterLoop[next].Y, sections[s].Z);
+ var p2 = new Point3D(sections[s + 1].OuterLoop[next].X, sections[s + 1].OuterLoop[next].Y, sections[s + 1].Z);
+ var p3 = new Point3D(sections[s + 1].OuterLoop[i].X, sections[s + 1].OuterLoop[i].Y, sections[s + 1].Z);
+ var normal = (p1 - p0).Cross(p2 - p0);
+ if (normal.Length <= Tol)
+ {
+ return false;
+ }
+
+ if (Math.Abs((p3 - p0).Dot(normal / normal.Length)) > Tol)
+ {
+ return false;
+ }
+ }
+ }
+
+ return true;
+ }
+
+ private static PrismaticSectionTransitionStepSummary SummarizeStep(BrepBody body)
+ {
+ var step = Step242Exporter.ExportBody(body);
+ if (!step.IsSuccess || step.Value is null)
+ {
+ return new(false, [], RequiredStepMarkers, [], ForbiddenStepMarkers);
+ }
+
+ var present = RequiredStepMarkers.Where(m => step.Value.Contains(m, StringComparison.Ordinal)).ToArray();
+ var missing = RequiredStepMarkers.Except(present, StringComparer.Ordinal).ToArray();
+ var absent = ForbiddenStepMarkers.Where(m => !step.Value.Contains(m, StringComparison.Ordinal)).ToArray();
+ var unexpected = ForbiddenStepMarkers.Where(m => step.Value.Contains(m, StringComparison.Ordinal)).ToArray();
+ return new(true, present, missing, absent, unexpected);
+ }
+
+ private static PrismaticSectionTransitionRow Stop(string caseName, LabProfileStatus status, List<string> diagnostics, string recommendation) =>
+ new(caseName, status, false, EmptyTopology(), EmptyStep(), StableDiagnostics(diagnostics), recommendation);
+
+ private static PrismaticTransitionTopologySummary EmptyTopology() => new(false, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "none");
+
+ private static PrismaticSectionTransitionStepSummary EmptyStep() => new(false, [], RequiredStepMarkers, ForbiddenStepMarkers, []);
+
+ private static PrismaticSection RectangleSection(double z, double width, double depth)
+ {
+ var x = width * 0.5d;
+ var y = depth * 0.5d;
+ return new(z, [(-x, -y), (x, -y), (x, y), (-x, y)]);
+ }
+
+ private static PrismaticSection RegularPolygonSection(double z, double radius, int vertices)
+ {
+ var points = Enumerable.Range(0, vertices)
+ .Select(i =>
+ {
+ var a = ((Math.PI * 2d) * i / vertices) - (Math.PI * 0.5d);
+ return (X: Math.Cos(a) * radius, Y: Math.Sin(a) * radius);
+ })
+ .ToArray();
+ return new(z, points);
+ }
+
+ private static IReadOnlyList<string> StableDiagnostics(IEnumerable<string> diagnostics) => diagnostics.Distinct(StringComparer.Ordinal).OrderBy(x => x, StringComparer.Ordinal).ToArray();
+
+ private static double SignedArea(IReadOnlyList<(double X, double Y)> loop)
+ {
+ var area = 0d;
+ for (var i = 0; i < loop.Count; i++)
+ {
+ var next = (i + 1) % loop.Count;
+ area += (loop[i].X * loop[next].Y) - (loop[next].X * loop[i].Y);
+ }
+
+ return area * 0.5d;
+ }
+
+ private static bool SegmentsIntersect((double X, double Y) a, (double X, double Y) b, (double X, double Y) c, (double X, double Y) d)
+ {
+ static double Cross((double X, double Y) p, (double X, double Y) q, (double X, double Y) r) => ((q.X - p.X) * (r.Y - p.Y)) - ((q.Y - p.Y) * (r.X - p.X));
+ var c1 = Cross(a, b, c);
+ var c2 = Cross(a, b, d);
+ var c3 = Cross(c, d, a);
+ var c4 = Cross(c, d, b);
+ return (c1 * c2 < -Tol) && (c3 * c4 < -Tol);
+ }
+
+ private static double Distance((double X, double Y) a, (double X, double Y) b) => Math.Sqrt(((a.X - b.X) * (a.X - b.X)) + ((a.Y - b.Y) * (a.Y - b.Y)));
+
+ private static bool SamePoint((double X, double Y) a, (double X, double Y) b) => Distance(a, b) <= Tol;
+}
+
+public static class PrismaticSectionTransitionEmitter
+{
+ private const double Tol = 1e-9;
+
+ public static (BrepBody? Body, string Diagnostic) TryEmit(IReadOnlyList<PrismaticSection> sections, PrismaticCorrespondenceMap correspondence)
+ {
+ _ = correspondence;
+ var n = sections[0].OuterLoop.Count;
+ var points = sections
+ .SelectMany(s => s.OuterLoop.Select(p => new Point3D(p.X, p.Y, s.Z)))
+ .ToArray();
+
+ var b = new TopologyBuilder();
+ var vertices = points.Select(_ => b.AddVertex()).ToArray();
+ var profileEdges = new EdgeId[sections.Count][];
+ for (var s = 0; s < sections.Count; s++)
+ {
+ profileEdges[s] = new EdgeId[n];
+ for (var i = 0; i < n; i++)
+ {
+ profileEdges[s][i] = b.AddEdge(vertices[(s * n) + i], vertices[(s * n) + ((i + 1) % n)]);
+ }
+ }
+
+ var transitionEdges = new EdgeId[sections.Count - 1][];
+ for (var s = 0; s < sections.Count - 1; s++)
+ {
+ transitionEdges[s] = new EdgeId[n];
+ for (var i = 0; i < n; i++)
+ {
+ transitionEdges[s][i] = b.AddEdge(vertices[(s * n) + i], vertices[((s + 1) * n) + i]);
+ }
+ }
+
+ var faces = new List<FaceId>
+ {
+ AddFaceWithLoop(b, profileEdges[0].Select(Use.F).ToArray()),
+ AddFaceWithLoop(b, profileEdges[^1].Select(Use.R).ToArray()),
+ };
+
+ for (var s = 0; s < sections.Count - 1; s++)
+ {
+ for (var i = 0; i < n; i++)
+ {
+ var next = (i + 1) % n;
+ faces.Add(AddFaceWithLoop(b, [Use.F(profileEdges[s][i]), Use.F(transitionEdges[s][next]), Use.R(profileEdges[s + 1][i]), Use.R(transitionEdges[s][i])]));
+ }
+ }
+
+ var shell = b.AddShell(faces);
+ b.AddBody([shell]);
+
+ var geometry = new BrepGeometryStore();
+ var bindings = new BrepBindingModel();
+ var vertexMap = new Dictionary<VertexId, Point3D>();
+ for (var i = 0; i < vertices.Length; i++)
+ {
+ vertexMap[vertices[i]] = points[i];
+ }
+
+ var curveId = 1;
+ foreach (var edge in b.Model.Edges.OrderBy(e => e.Id.Value))
+ {
+ var p0 = vertexMap[edge.StartVertexId];
+ var p1 = vertexMap[edge.EndVertexId];
+ var vector = p1 - p0;
+ if (vector.Length <= Tol)
+ {
+ return (null, "zero-length-edge");
+ }
+
+ geometry.AddCurve(new CurveGeometryId(curveId), CurveGeometry.FromLine(new Line3Curve(p0, Direction3D.Create(vector))));
+ bindings.AddEdgeBinding(new EdgeGeometryBinding(edge.Id, new CurveGeometryId(curveId), new ParameterInterval(0d, vector.Length)));
+ curveId++;
+ }
+
+ var surfaceId = 1;
+ AddPlane(geometry, bindings, faces[0], new Point3D(0, 0, sections[0].Z), new Vector3D(0, 0, -1), new Vector3D(1, 0, 0), surfaceId++);
+ AddPlane(geometry, bindings, faces[1], new Point3D(0, 0, sections[^1].Z), new Vector3D(0, 0, 1), new Vector3D(1, 0, 0), surfaceId++);
+
+ var faceIndex = 2;
+ for (var s = 0; s < sections.Count - 1; s++)
+ {
+ for (var i = 0; i < n; i++)
+ {
+ var next = (i + 1) % n;
+ AddPlaneFromQuad(geometry, bindings, faces[faceIndex++], points[(s * n) + i], points[(s * n) + next], points[((s + 1) * n) + next], surfaceId++);
+ }
+ }
+
+ return (new BrepBody(b.Model, geometry, bindings, vertexMap), string.Empty);
+ }
+
+ private static void AddPlaneFromQuad(BrepGeometryStore geometry, BrepBindingModel bindings, FaceId face, Point3D p0, Point3D p1, Point3D p2, int surfaceId)
+ {
+ var u = p1 - p0;
+ var v = p2 - p1;
+ var normal = u.Cross(v);
+ if (normal.Length <= Tol)
+ {
+ normal = new Vector3D(0, 0, 1);
+ }
+
+ var reference = u.Length > Tol ? u : new Vector3D(1, 0, 0);
+ AddPlane(geometry, bindings, face, p0, normal, reference, surfaceId);
+ }
+
+ private static void AddPlane(BrepGeometryStore geometry, BrepBindingModel bindings, FaceId face, Point3D origin, Vector3D normal, Vector3D reference, int surfaceId)
+ {
+ geometry.AddSurface(new SurfaceGeometryId(surfaceId), SurfaceGeometry.FromPlane(new PlaneSurface(origin, Direction3D.Create(normal), Direction3D.Create(reference))));
+ bindings.AddFaceBinding(new FaceGeometryBinding(face, new SurfaceGeometryId(surfaceId)));
+ }
+
+ private static LoopId AddLoop(TopologyBuilder b, IReadOnlyList<Use> uses)
+ {
+ var loopId = b.AllocateLoopId();
+ var coedgeIds = uses.Select(_ => b.AllocateCoedgeId()).ToArray();
+ for (var i = 0; i < uses.Count; i++)
+ {
+ var next = coedgeIds[(i + 1) % coedgeIds.Length];
+ var previous = coedgeIds[(i + coedgeIds.Length - 1) % coedgeIds.Length];
+ b.AddCoedge(new Coedge(coedgeIds[i], uses[i].Edge, loopId, next, previous, uses[i].Reversed));
+ }
+
+ b.AddLoop(new Loop(loopId, coedgeIds));
+ return loopId;
+ }
+
+ private static FaceId AddFaceWithLoop(TopologyBuilder builder, IReadOnlyList<Use> edgeUses) => builder.AddFace([AddLoop(builder, edgeUses)]);
+
+ private readonly record struct Use(EdgeId Edge, bool Reversed)
+ {
+ public static Use F(EdgeId edge) => new(edge, false);
+ public static Use R(EdgeId edge) => new(edge, true);
+ }
+}
diff --git a/Aetheris.FrictionLab.Tests/CIRLab/PrismaticSectionTransitionEmitterLabTests.cs b/Aetheris.FrictionLab.Tests/CIRLab/PrismaticSectionTransitionEmitterLabTests.cs
new file mode 100644
index 00000000..8b1454aa
--- /dev/null
+++ b/Aetheris.FrictionLab.Tests/CIRLab/PrismaticSectionTransitionEmitterLabTests.cs
@@ -0,0 +1,147 @@
+using Aetheris.Firmament.FrictionLab.CIRLab;
+
+namespace Aetheris.FrictionLab.Tests.CIRLab;
+
+public sealed class PrismaticSectionTransitionEmitterLabTests
+{
+ private static string Stable(PrismaticSectionTransitionRow row) => string.Join("|",
+ row.CaseName,
+ row.Status,
+ row.Succeeded,
+ row.Topology.BodyProduced,
+ row.Topology.SectionCount,
+ row.Topology.VertexCount,
+ row.Topology.EdgeCount,
+ row.Topology.BottomProfileEdgeCount,
+ row.Topology.TopProfileEdgeCount,
+ row.Topology.TransitionEdgeCount,
+ row.Topology.CapFaceCount,
+ row.Topology.TransitionFaceCount,
+ row.Topology.StableIntervalFaceCount,
+ row.Topology.ChangedIntervalFaceCount,
+ row.Topology.FaceCount,
+ row.Topology.PlanarFaceCount,
+ row.Topology.CylindricalFaceCount,
+ row.Topology.LoopCount,
+ row.Topology.CoedgeCount,
+ row.Topology.Bounds,
+ row.Step.Exported,
+ string.Join(",", row.Step.PresentMarkers.OrderBy(x => x, StringComparer.Ordinal)),
+ string.Join(",", row.Step.MissingRequiredMarkers.OrderBy(x => x, StringComparer.Ordinal)),
+ string.Join(",", row.Step.AbsentMarkers.OrderBy(x => x, StringComparer.Ordinal)),
+ string.Join(",", row.Step.UnexpectedPresentMarkers.OrderBy(x => x, StringComparer.Ordinal)),
+ string.Join(",", row.Diagnostics.OrderBy(x => x, StringComparer.Ordinal)),
+ row.Recommendation);
+
+ [Fact]
+ public void PrismaticSectionTransitionEmitterLab_IsDeterministic()
+ {
+ var first = PrismaticSectionTransitionEmitterLab.RunAll();
+ var second = PrismaticSectionTransitionEmitterLab.RunAll();
+
+ Assert.Equal(first.Select(Stable), second.Select(Stable));
+ }
+
+ [Fact]
+ public void TwoSectionRectangleToInsetRectangle_EmitsClosedPlanarBrepAndStepSmoke()
+ {
+ var row = PrismaticSectionTransitionEmitterLab.RunAll().Single(x => x.CaseName == "rectangle-to-inset-rectangle");
+
+ Assert.True(row.Succeeded);
+ Assert.Equal(LabProfileStatus.Succeeded, row.Status);
+ Assert.True(row.Topology.BodyProduced);
+ Assert.Equal(2, row.Topology.SectionCount);
+ Assert.Equal(8, row.Topology.VertexCount);
+ Assert.Equal(12, row.Topology.EdgeCount);
+ Assert.Equal(4, row.Topology.BottomProfileEdgeCount);
+ Assert.Equal(4, row.Topology.TopProfileEdgeCount);
+ Assert.Equal(4, row.Topology.TransitionEdgeCount);
+ Assert.Equal(2, row.Topology.CapFaceCount);
+ Assert.Equal(4, row.Topology.TransitionFaceCount);
+ Assert.Equal(0, row.Topology.StableIntervalFaceCount);
+ Assert.Equal(4, row.Topology.ChangedIntervalFaceCount);
+ Assert.Equal(6, row.Topology.FaceCount);
+ Assert.Equal(6, row.Topology.PlanarFaceCount);
+ Assert.Equal(0, row.Topology.CylindricalFaceCount);
+ Assert.Equal(6, row.Topology.LoopCount);
+ Assert.Equal(24, row.Topology.CoedgeCount);
+ Assert.Equal("[-5,-4,0]..[5,4,1]", row.Topology.Bounds);
+ Assert.True(row.Step.Exported);
+ Assert.Empty(row.Step.MissingRequiredMarkers);
+ Assert.Empty(row.Step.UnexpectedPresentMarkers);
+ Assert.Contains("ISO-10303-21", row.Step.PresentMarkers);
+ Assert.Contains("MANIFOLD_SOLID_BREP", row.Step.PresentMarkers);
+ Assert.Contains("ADVANCED_FACE", row.Step.PresentMarkers);
+ Assert.Contains("PLANE", row.Step.PresentMarkers);
+ Assert.Contains("CYLINDRICAL_SURFACE", row.Step.AbsentMarkers);
+ Assert.Contains("BREP_WITH_VOIDS", row.Step.AbsentMarkers);
+ Assert.Contains("edge-prismatic-x1-step-smoke-succeeded", row.Diagnostics);
+ Assert.Contains("edge-prismatic-x1-no-air-edge-sweep-used", row.Diagnostics);
+ Assert.Contains("edge-prismatic-x1-no-brep-bounded-chamfer-used", row.Diagnostics);
+ Assert.Contains("edge-prismatic-x1-no-topology-graft-used", row.Diagnostics);
+ Assert.Contains("edge-prismatic-x1-no-3d-boolean-used", row.Diagnostics);
+ }
+
+ [Fact]
+ public void ThreeSectionStablePlusTransition_EmitsSplitIntervalFacesWithDocumentedTopology()
+ {
+ var row = PrismaticSectionTransitionEmitterLab.RunAll().Single(x => x.CaseName == "three-section-stable-plus-transition");
+
+ Assert.True(row.Succeeded);
+ Assert.Equal(LabProfileStatus.Succeeded, row.Status);
+ Assert.True(row.Topology.BodyProduced);
+ Assert.Equal(3, row.Topology.SectionCount);
+ Assert.Equal(12, row.Topology.VertexCount);
+ Assert.Equal(20, row.Topology.EdgeCount);
+ Assert.Equal(4, row.Topology.BottomProfileEdgeCount);
+ Assert.Equal(4, row.Topology.TopProfileEdgeCount);
+ Assert.Equal(8, row.Topology.TransitionEdgeCount);
+ Assert.Equal(2, row.Topology.CapFaceCount);
+ Assert.Equal(8, row.Topology.TransitionFaceCount);
+ Assert.Equal(4, row.Topology.StableIntervalFaceCount);
+ Assert.Equal(4, row.Topology.ChangedIntervalFaceCount);
+ Assert.Equal(10, row.Topology.FaceCount);
+ Assert.Equal(10, row.Topology.PlanarFaceCount);
+ Assert.Equal(0, row.Topology.CylindricalFaceCount);
+ Assert.Equal(10, row.Topology.LoopCount);
+ Assert.Equal(40, row.Topology.CoedgeCount);
+ Assert.Equal("[-5,-4,0]..[5,4,6]", row.Topology.Bounds);
+ Assert.True(row.Step.Exported);
+ Assert.Empty(row.Step.MissingRequiredMarkers);
+ Assert.Empty(row.Step.UnexpectedPresentMarkers);
+ Assert.Contains("edge-prismatic-x1-transition-faces-created", row.Diagnostics);
+ Assert.Contains("edge-prismatic-x1-step-smoke-succeeded", row.Diagnostics);
+ }
+
+ [Theory]
+ [InlineData("invalid-non-increasing-z", LabProfileStatus.Failed, "edge-prismatic-x1-non-increasing-sections-rejected", "prismatic-section-transition-invalid-rejected")]
+ [InlineData("invalid-mismatched-vertex-count", LabProfileStatus.Failed, "edge-prismatic-x1-mismatched-vertex-count-rejected", "prismatic-section-transition-invalid-rejected")]
+ [InlineData("invalid-missing-correspondence", LabProfileStatus.Failed, "edge-prismatic-x1-missing-correspondence-rejected", "prismatic-section-transition-invalid-rejected")]
+ [InlineData("invalid-self-intersecting-profile", LabProfileStatus.Failed, "edge-prismatic-x1-invalid-profile-rejected", "prismatic-section-transition-invalid-rejected")]
+ [InlineData("deferred-holes", LabProfileStatus.Deferred, "edge-prismatic-x1-holes-deferred", "prismatic-section-transition-deferred")]
+ [InlineData("deferred-line-arc", LabProfileStatus.Deferred, "edge-prismatic-x1-line-arc-deferred", "prismatic-section-transition-deferred")]
+ [InlineData("deferred-multiple-loops", LabProfileStatus.Deferred, "edge-prismatic-x1-multiple-loops-deferred", "prismatic-section-transition-deferred")]
+ public void InvalidAndDeferredCases_AreClassifiedDeterministically(string caseName, LabProfileStatus expectedStatus, string diagnostic, string recommendation)
+ {
+ var row = PrismaticSectionTransitionEmitterLab.RunAll().Single(x => x.CaseName == caseName);
+
+ Assert.False(row.Succeeded);
+ Assert.False(row.Topology.BodyProduced);
+ Assert.Equal(expectedStatus, row.Status);
+ Assert.Contains(diagnostic, row.Diagnostics);
+ Assert.Equal(recommendation, row.Recommendation);
+ }
+
+ [Fact]
+ public void RecommendationVocabulary_IsFiniteAndDeterministic()
+ {
+ var rows = PrismaticSectionTransitionEmitterLab.RunAll();
+
+ foreach (var row in rows)
+ {
+ Assert.Contains(row.Recommendation, PrismaticSectionTransitionEmitterLab.AllowedRecommendations);
+ }
+
+ Assert.Equal(rows.Select(r => r.Recommendation), PrismaticSectionTransitionEmitterLab.RunAll().Select(r => r.Recommendation));
+ }
+}
diff --git a/docs/edge-a1-chamfer-fillet-support-compatibility-matrix.md b/docs/edge-a1-chamfer-fillet-support-compatibility-matrix.md
index 5bcc68af..06c6fb30 100644
--- a/docs/edge-a1-chamfer-fillet-support-compatibility-matrix.md
+++ b/docs/edge-a1-chamfer-fillet-support-compatibility-matrix.md
@@ -240,11 +240,12 @@ Recommended post-EDGE-X13 roadmap:
2. **EDGE-A2**: constructive chamfer reframing audit, reclassifying history-known chamfers into profile/profile-stack/corner-manifest candidates where evidence supports it.
3. **EDGE-PROFILE-X1**: vertical-edge chamfer as profile extrusion lab.
4. **EDGE-PROFILE-X2**: horizontal/top-edge chamfer as profile-stack or section-transition lab.
-5. **EDGE-PRISMATIC-A0**: completed as the prismatic section-transition contract audit for top/bottom/horizontal history-known chamfer roadmap classification; next implementation evidence should come from EDGE-PRISMATIC-X1/X2 labs, not production route changes.
-6. **EDGE-CORNER-X1**: manifest-driven single-corner chamfer reconstruction lab.
-7. **EDGE-FILLET-A0**: AirFillet architecture audit focused on bounded constant-radius analytic scope.
-8. **EDGE-X14**: plane-plane constant-radius AirFillet cylindrical closed witness lab.
-9. **EDGE-X15+ / EDGE-V paths**: continue controlled no-history/local-edge AirChamfer hardening only where shadow diagnostics and production-readiness gates remain stable.
+5. **EDGE-PRISMATIC-A0**: completed as the prismatic section-transition contract audit for top/bottom/horizontal history-known chamfer roadmap classification.
+6. **EDGE-PRISMATIC-X1**: completed as a lab-only first-scope `PrismaticSectionTransitionEmitter` proof for two/three Z-stacked line-only outer sections with explicit identity correspondence, closed planar BRep emission, split transition intervals, STEP smoke, and deterministic invalid/deferred diagnostics. This upgrades the evidence base for prismatic section transitions but does not change production chamfer/fillet behavior, current `ProfileStackExtrudeExecutor` behavior, AirEdgeSweep, `BrepBoundedChamfer`, STEP exporter/importer code, Boolean core code, triangle migration, sketch solving, clipping, or NURBS/freeform support.
+7. **EDGE-CORNER-X1**: manifest-driven single-corner chamfer reconstruction lab.
+8. **EDGE-FILLET-A0**: AirFillet architecture audit focused on bounded constant-radius analytic scope.
+9. **EDGE-X14**: plane-plane constant-radius AirFillet cylindrical closed witness lab.
+10. **EDGE-X15+ / EDGE-V paths**: continue controlled no-history/local-edge AirChamfer hardening only where shadow diagnostics and production-readiness gates remain stable.
The roadmap should be adjusted by evidence. If a row reveals recognizer divergence, legacy topology mismatch, or body-mutation instability, the next milestone should narrow to that blocker rather than broadening support claims.
diff --git a/docs/edge-prismatic-a0-section-transition-contract-audit.md b/docs/edge-prismatic-a0-section-transition-contract-audit.md
index 1fc4c154..67827879 100644
--- a/docs/edge-prismatic-a0-section-transition-contract-audit.md
+++ b/docs/edge-prismatic-a0-section-transition-contract-audit.md
@@ -424,3 +424,11 @@ This milestone explicitly does **not** include:
- NURBS/freeform support;
- holes or line+arc prismatic emission in first scope;
- inferred profile correspondence.
+
+## 13. EDGE-PRISMATIC-X1 implementation note
+
+EDGE-PRISMATIC-X1 now implements the first-scope lab-only prismatic section-transition emitter described by this audit. The implementation introduces `PrismaticSectionTransitionEmitterLab`, `PrismaticSectionTransitionEmitter`, `PrismaticSectionTransitionCase`, `PrismaticSectionTransitionRow`, `PrismaticSection`, `PrismaticCorrespondenceMap`, and `PrismaticTransitionTopologySummary` under FrictionLab/CIRLab scope.
+
+The X1 lab admits two or three Z-stacked line-only outer sections, one loop, no holes/arcs, equal vertex counts, identity-by-index correspondence, planar transition faces, deterministic topology, and direct closed BRep emission. Its rectangle-to-inset and three-section stable+transition cases export through the existing `Step242Exporter` with planar `MANIFOLD_SOLID_BREP` STEP smoke and without `CYLINDRICAL_SURFACE` or `BREP_WITH_VOIDS` markers.
+
+This is evidence for the contract only. It does not change production chamfer/fillet behavior, production route selection, `ProfileStackExtrudeExecutor`, AirEdgeSweep, `BrepBoundedChamfer`, STEP exporter/importer code, Boolean core code, triangle migration, sketch solving, clipping, or NURBS/freeform support.
diff --git a/docs/frictionlab/edge-prismatic-x1-section-transition-emitter-lab.md b/docs/frictionlab/edge-prismatic-x1-section-transition-emitter-lab.md
new file mode 100644
index 00000000..7bac6e88
--- /dev/null
+++ b/docs/frictionlab/edge-prismatic-x1-section-transition-emitter-lab.md
@@ -0,0 +1,211 @@
+# EDGE-PRISMATIC-X1 — Section-transition emitter lab
+
+## 1. Purpose and scope
+
+EDGE-PRISMATIC-X1 adds a **lab-only** first-scope `PrismaticSectionTransitionEmitter` proof. It consumes Z-axis stacked, line-only outer profile sections with explicit index correspondence and emits a closed planar BRep by deterministic cap and transition-face construction.
+
+The milestone is intentionally narrow. It does not change production chamfer/fillet behavior, production route selection, the current `ProfileStackExtrudeExecutor`, STEP exporter/importer behavior, Boolean core behavior, AirEdgeSweep behavior, triangle migration, the sketch solver, clipping, or NURBS/freeform support.
+
+## 2. Relationship to EDGE-PRISMATIC-A0
+
+EDGE-PRISMATIC-A0 identified that the EDGE-PROFILE-X2 top-edge chamfer witness needed a first-class prismatic section-transition contract before production-adjacent work. X1 implements the first lab proof of that contract: explicit sections, finite and increasing Z values, stable loop orientation, equal vertex counts, explicit correspondence, deterministic transition intervals, planar face classification, STEP smoke, and machine-checkable diagnostics.
+
+## 3. First-scope emitter definition
+
+The lab code lives under `Aetheris.Firmament.FrictionLab/CIRLab` and introduces:
+
+- `PrismaticSectionTransitionEmitterLab` for deterministic case execution and diagnostics.
+- `PrismaticSectionTransitionEmitter` for direct closed BRep emission.
+- `PrismaticSectionTransitionCase` for named lab cases.
+- `PrismaticSectionTransitionRow` for machine-checkable lab output.
+- `PrismaticSection` for one Z-stacked line-only outer loop.
+- `PrismaticCorrespondenceMap` for explicit vertex correspondence; X1 admits identity-by-index only.
+- `PrismaticTransitionTopologySummary` for topology and face-family counts.
+
+The emitter is not a loft, a trim, a graft, an edge mutation, a 3D Boolean fallback, or an AirEdgeSweep/BrepBoundedChamfer route. It builds topology directly from the supplied sections.
+
+## 4. Data model
+
+### Sections
+
+A section has:
+
+- a finite Z value;
+- one closed outer line loop;
+- stable vertex order;
+- no holes;
+- no arcs;
+- exactly one outer loop.
+
+X1 supports two or three sections. Section heights must be strictly increasing, and every interval span must be positive.
+
+### Profiles
+
+Profiles are line-only polygons represented as ordered XY vertices. The lab validates finite coordinates, non-zero edges, non-zero signed area, stable orientation across sections, and no self-intersection. X1 rejects invalid profiles and defers holes, arcs, and multiple loops.
+
+### Correspondence
+
+X1 requires an explicit `PrismaticCorrespondenceMap`. The admitted first-scope map is identity-by-index with the same vertex count in every section. Missing correspondence or non-identity/malformed correspondence is rejected or marked as needing correspondence hardening.
+
+### Transition intervals
+
+For every adjacent section pair, the emitter creates one interval. Each interval emits one quad transition face per corresponding profile edge and one transition edge per corresponding vertex. Stable and changed intervals are both preserved as separate topology; X1 does not merge adjacent coplanar faces.
+
+## 5. Test cases and results
+
+### Case 1 — rectangle to inset rectangle
+
+Input:
+
+- `z0 = 0`, rectangle width `10`, depth `8`;
+- `z1 = 1`, inset rectangle width `8`, depth `6`;
+- identity correspondence across four vertices.
+
+Result:
+
+- closed frustum-like planar BRep;
+- 2 cap faces;
+- 4 transition faces;
+- all faces planar;
+- no cylindrical surfaces;
+- STEP smoke succeeds.
+
+### Case 2 — three-section stable + transition rectangle
+
+Input:
+
+- `z0 = 0`, full rectangle width `10`, depth `8`;
+- `z1 = 5`, full rectangle width `10`, depth `8`;
+- `z2 = 6`, inset rectangle width `8`, depth `6`;
+- identity correspondence across four vertices.
+
+Result:
+
+- bottom and top cap faces;
+- the stable lower interval and the changed upper interval remain split;
+- 8 interval transition faces total;
+- 4 stable interval faces and 4 changed interval faces in the topology summary;
+- all faces planar;
+- STEP smoke succeeds.
+
+### Case 3 — scaled pentagon
+
+Input:
+
+- two five-vertex regular polygon sections;
+- scaled radius between sections;
+- identity correspondence.
+
+Result:
+
+- closed planar BRep;
+- deterministic topology counts under the same formula as the rectangle cases;
+- STEP smoke succeeds.
+
+## 6. Topology findings
+
+For an admitted case with `S` sections and `N` vertices per section, X1 intentionally emits:
+
+- vertices: `S * N`;
+- profile edges: `S * N`;
+- transition edges: `(S - 1) * N`;
+- total edges: `(S * N) + ((S - 1) * N)`;
+- cap faces: `2`;
+- transition faces: `(S - 1) * N`;
+- total faces/loops: `2 + ((S - 1) * N)`;
+- coedges: `(2 * N) + (4 * (S - 1) * N)`.
+
+The two-section rectangle-to-inset-rectangle case has:
+
+- section count `2`;
+- vertices `8`;
+- bottom profile edges `4`;
+- top profile edges `4`;
+- transition edges `4`;
+- total edges `12`;
+- cap faces `2`;
+- transition faces `4`;
+- total faces `6`;
+- planar faces `6`;
+- cylindrical faces `0`;
+- loops `6`;
+- coedges `24`.
+
+The three-section stable + transition rectangle case has:
+
+- section count `3`;
+- vertices `12`;
+- bottom profile edges `4`;
+- top profile edges `4`;
+- transition edges `8`;
+- total edges `20`;
+- cap faces `2`;
+- transition faces `8`;
+- stable interval faces `4`;
+- changed interval faces `4`;
+- total faces `10`;
+- planar faces `10`;
+- cylindrical faces `0`;
+- loops `10`;
+- coedges `40`.
+
+These counts are asserted in `PrismaticSectionTransitionEmitterLabTests` and document the intended split-face contract.
+
+## 7. STEP smoke findings
+
+The lab exports through the existing `Step242Exporter`. Successful cases require these markers:
+
+- `ISO-10303-21`;
+- `MANIFOLD_SOLID_BREP`;
+- `ADVANCED_FACE`;
+- `PLANE`.
+
+Successful cases also require these markers to be absent:
+
+- `CYLINDRICAL_SURFACE`;
+- `BREP_WITH_VOIDS`.
+
+## 8. Invalid and deferred cases
+
+The lab has deterministic diagnostics for:
+
+- non-increasing section heights: `edge-prismatic-x1-non-increasing-sections-rejected`;
+- zero/non-positive spans through the same non-increasing check;
+- mismatched vertex counts: `edge-prismatic-x1-mismatched-vertex-count-rejected`;
+- missing correspondence: `edge-prismatic-x1-missing-correspondence-rejected`;
+- invalid/self-intersecting profile: `edge-prismatic-x1-invalid-profile-rejected`;
+- holes: `edge-prismatic-x1-holes-deferred`;
+- line+arc profiles: `edge-prismatic-x1-line-arc-deferred`;
+- multiple outer loops: `edge-prismatic-x1-multiple-loops-deferred`.
+
+The finite recommendation vocabulary is:
+
+- `prismatic-section-transition-ready-for-production-evaluation`;
+- `prismatic-section-transition-needs-profile-validation-hardening`;
+- `prismatic-section-transition-needs-correspondence-hardening`;
+- `prismatic-section-transition-invalid-rejected`;
+- `prismatic-section-transition-deferred`.
+
+## 9. No-trim/no-graft/no-legacy-route guarantee
+
+X1 emits direct topology and geometry from section rows. The success diagnostics include:
+
+- `edge-prismatic-x1-no-air-edge-sweep-used`;
+- `edge-prismatic-x1-no-brep-bounded-chamfer-used`;
+- `edge-prismatic-x1-no-topology-graft-used`;
+- `edge-prismatic-x1-no-3d-boolean-used`.
+
+There is no trim engine, topology graft/body mutation, production chamfer/fillet call, `AirEdgeSweep`, `BrepBoundedChamfer`, 3D Boolean, sketch solver, clipping engine, or NURBS/freeform support in this lab.
+
+## 10. Relationship to current ProfileStackExtrudeExecutor
+
+`ProfileStackExtrudeExecutor` remains unchanged. X1 does not replace it, broaden its production behavior, or route production profile-stack cases through the new emitter. The lab exists to prove a generic polygon section-transition foundation that can later inform production-adjacent design without disturbing the current circular-hole profile-stack executor.
+
+## 11. Recommendation for next milestone
+
+X1 is strong enough to support one of two next steps:
+
+1. **EDGE-PRISMATIC-X2**: express the top-edge chamfer case through this generic emitter rather than the one-off EDGE-PROFILE-X2 witness.
+2. **EDGE-PRISMATIC-V1**: package the lab proof as a production-adjacent emitter candidate, if additional validation hardening and feature-recognition requirements are explicitly scoped.
+
+The safer sequencing is EDGE-PRISMATIC-X2 first, because it would prove that the generic emitter materially subsumes the existing top-edge chamfer lab before any production-adjacent packaging.
diff --git a/docs/frictionlab/edge-profile-x2-top-edge-chamfer-profile-stack-lab.md b/docs/frictionlab/edge-profile-x2-top-edge-chamfer-profile-stack-lab.md
index 3d46a9b2..92d1378c 100644
--- a/docs/frictionlab/edge-profile-x2-top-edge-chamfer-profile-stack-lab.md
+++ b/docs/frictionlab/edge-profile-x2-top-edge-chamfer-profile-stack-lab.md
@@ -150,3 +150,9 @@ Invalid cases reject before Route A/B geometry attempts:
EDGE-PROFILE-X2 proves the top +X horizontal edge chamfer theory for one bounded all-planar witness through a lab-only section-transition emitter. The next production-adjacent step is not to generalize the existing circular-hole profile-stack executor in-place, but to define a first-class polygon section-transition/profile-correspondence contract and then evaluate a production-adjacent profile-stack chamfer emitter against that contract.
Follow-up: EDGE-PRISMATIC-A0 creates that first-class contract in `docs/edge-prismatic-a0-section-transition-contract-audit.md`, using the term **prismatic section transition** for axis-stacked resolved profile evolution with explicit correspondence and deterministic transition-face emission. Future top/horizontal chamfer work should target that contract rather than extending this one-off witness directly.
+
+## EDGE-PRISMATIC-X1 follow-up
+
+EDGE-PRISMATIC-X1 generalizes this lab's Route B section-transition witness into a reusable FrictionLab-only `PrismaticSectionTransitionEmitter`. Instead of the one-off top +X chamfer construction, X1 consumes explicit Z-stacked line-only sections, identity correspondence, and deterministic transition intervals, then emits closed planar BReps directly.
+
+The X1 result preserves the EDGE-PROFILE-X2 conclusion that horizontal/top-edge chamfer construction should proceed through prismatic section evolution rather than AirEdgeSweep, `BrepBoundedChamfer`, topology grafting, or 3D Boolean fallback. It also keeps the current `ProfileStackExtrudeExecutor` unchanged; X1 is lab-only evidence for a generic prismatic emitter, not a production profile-stack replacement.