Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
STEP writer derives loop direction; fix coil and extrude face orientation
Claude7072cc6fc3ed
diff --git a/Aetheris.Kernel.Core.Tests/Brep/Surgery/BrepSurgeryRecipeParityTests.cs b/Aetheris.Kernel.Core.Tests/Brep/Surgery/BrepSurgeryRecipeParityTests.csindex c3a7b6a6..23bf3e95 100644--- a/Aetheris.Kernel.Core.Tests/Brep/Surgery/BrepSurgeryRecipeParityTests.cs+++ b/Aetheris.Kernel.Core.Tests/Brep/Surgery/BrepSurgeryRecipeParityTests.cs@@ -20,7 +20,7 @@ public sealed class BrepSurgeryRecipeParityTestsnew AxisAlignedBoxExtents(2d, 4d, 0d, 2d, 0d, 1d),]).Value;- AssertCanonical(body, 8, 12, 6, "0a1e73060c516eb608c1aef10a4f669b988052d806da441d8fed39bff73d5aed", expectClosedManifold: true);+ AssertCanonical(body, 8, 12, 6, "9c9f2a15d6743a9cec1f0db076d77f84ce6815f5e0aaadbc9bd74822aab44a3b", expectClosedManifold: true);}[Fact]@@ -42,7 +42,7 @@ public sealed class BrepSurgeryRecipeParityTestsvar tool = StandardLibraryPrimitives.CreateSlotCut(10d, 4d, 24d, 2d).Value;var body = BrepBoolean.Subtract(root, tool).Value;- AssertCanonical(body, 128, 192, 66, "a7b0cbd24843291d472417b8f6b752dbd2b3f1f361149a853cb829b7de6915fc");+ AssertCanonical(body, 128, 192, 66, "87385573d3a18d58c5b3e57d30c57db1bc32a8efae69c59f31180fdbe3598ef7");}private static void AssertCanonical(BrepBody body, int vertices, int edges, int faces, string expectedStepSha256, bool expectClosedManifold = false)diff --git a/Aetheris.Kernel.Core.Tests/Step242/StepLoopOrientationTests.cs b/Aetheris.Kernel.Core.Tests/Step242/StepLoopOrientationTests.csnew file mode 100644index 00000000..596117bb--- /dev/null+++ b/Aetheris.Kernel.Core.Tests/Step242/StepLoopOrientationTests.cs@@ -0,0 +1,41 @@+using System.Text.RegularExpressions;+using Aetheris.Kernel.Core.Brep;+using Aetheris.Kernel.Core.Brep.Boolean;+using Aetheris.Kernel.Core.Geometry;+using Aetheris.Kernel.Core.Math;+using Aetheris.Kernel.Core.Numerics;+using Aetheris.Kernel.Core.Step242;++namespace Aetheris.Kernel.Core.Tests.Step242;++public sealed class StepLoopOrientationTests+{+ [Fact]+ public void ExtrudedBoxCapsWindAboutTheirOutwardNormals()+ => AssertEachEdgeUsedOnceEachWay(Step242Exporter.ExportBody(BrepPrimitives.CreateBox(80, 50, 25).Value).Value);++ [Fact]+ public void BuildersWithInconsistentLoopsExportConsistentOnes()+ {+ // The box-and-hole builder winds both caps and their holes about +Z; the writer derives the direction.+ var box = new AxisAlignedBoxExtents(-20, 20, -15, 15, 0, 6);+ var axis = Direction3D.Create(new Vector3D(0, 0, 1));+ var cylinder = new RecognizedCylinder(new Point3D(0, 0, 0), axis, 4, 0, 6);+ var hole = new SupportedBooleanHole("Hole", new AnalyticSurface(AnalyticSurfaceKind.Cylinder, Cylinder: cylinder), 0, 0,+ new Point3D(0, 0, 0), new Point3D(0, 0, 6), axis, Direction3D.Create(new Vector3D(1, 0, 0)), 4, 4, SupportedBooleanHoleSpanKind.Through, 0, 6);+ var body = BrepBooleanBoxCylinderHoleBuilder.BuildComposition(new SafeBooleanComposition(box, [hole]), ToleranceContext.Default);+ Assert.True(body.IsSuccess, string.Join(" | ", body.Diagnostics.Select(d => d.Message)));+ var step = Step242Exporter.ExportBody(body.Value!);+ Assert.True(step.IsSuccess);+ AssertEachEdgeUsedOnceEachWay(step.Value);+ Assert.DoesNotContain(step.Diagnostics, d => d.Message.StartsWith("step-export-face-normal-inverted", StringComparison.Ordinal));+ }++ private static void AssertEachEdgeUsedOnceEachWay(string step)+ {+ var uses = Regex.Matches(step, @"ORIENTED_EDGE\(\$,\$,\$,#(\d+),\.(T|F)\.\)")+ .GroupBy(m => m.Groups[1].Value, m => m.Groups[2].Value);+ Assert.NotEmpty(uses);+ Assert.All(uses, edge => Assert.Equal(["F", "T"], edge.Order(StringComparer.Ordinal)));+ }+}diff --git a/Aetheris.Kernel.Core/Brep/Features/BrepExtrude.cs b/Aetheris.Kernel.Core/Brep/Features/BrepExtrude.csindex e783f1df..c9b2eedf 100644--- a/Aetheris.Kernel.Core/Brep/Features/BrepExtrude.cs+++ b/Aetheris.Kernel.Core/Brep/Features/BrepExtrude.cs@@ -73,9 +73,11 @@ public static class BrepExtrudevar faces = new List<FaceId>(n + 2){- AddFaceWithLoop(builder, bottomEdges.Select(EdgeUse.Forward).ToArray()),- // Reversing a boundary reverses both each coedge sense and its cyclic order.- AddFaceWithLoop(builder, topEdges.Reverse().Select(EdgeUse.Reversed).ToArray()),+ // Loops run counter-clockwise about each face's outward normal. The profile is counter-clockwise about the+ // extrude normal, which is the top's outward normal; the bottom faces the other way, so its loop is the+ // profile reversed (each coedge's sense and the cyclic order). Each edge is then used once each way.+ AddFaceWithLoop(builder, bottomEdges.Reverse().Select(EdgeUse.Reversed).ToArray()),+ AddFaceWithLoop(builder, topEdges.Select(EdgeUse.Forward).ToArray()),};for (var i = 0; i < n; i++)diff --git a/Aetheris.Kernel.Core/Brep/Features/BrepRevolvedShell.cs b/Aetheris.Kernel.Core/Brep/Features/BrepRevolvedShell.csindex 88dd397d..4795f4c4 100644--- a/Aetheris.Kernel.Core/Brep/Features/BrepRevolvedShell.cs+++ b/Aetheris.Kernel.Core/Brep/Features/BrepRevolvedShell.cs@@ -137,6 +137,13 @@ public static class BrepRevolvedShellif (circles[(i + 1) % loop.Count] is { } endCircle) AddLoop(endCircle, true);if (loops.Count == 0) return Failure("revolve-shell-meridian-invalid", $"Meridian span {i} sweeps no area.");var face = builder.AddFace(loops);+ // An annulus's outer boundary is its larger circle, whichever end of the span that is.+ if (surface.Kind == SurfaceGeometryKind.Plane && loops.Count == 2)+ {+ var startOuter = p.X > q.X;+ bindings.AddFaceBoundaryRoleBinding(new FaceBoundaryRoleBinding(face, loops[0], startOuter ? FaceBoundaryRole.Outer : FaceBoundaryRole.Inner));+ bindings.AddFaceBoundaryRoleBinding(new FaceBoundaryRoleBinding(face, loops[1], startOuter ? FaceBoundaryRole.Inner : FaceBoundaryRole.Outer));+ }var surfaceId = new SurfaceGeometryId(nextSurface++);geometry.AddSurface(surfaceId, surface);bindings.AddFaceBinding(new FaceGeometryBinding(face, surfaceId, sameSense));diff --git a/Aetheris.Kernel.Core/Step242/Step242Exporter.cs b/Aetheris.Kernel.Core/Step242/Step242Exporter.csindex cada4605..b62655b9 100644--- a/Aetheris.Kernel.Core/Step242/Step242Exporter.cs+++ b/Aetheris.Kernel.Core/Step242/Step242Exporter.cs@@ -143,7 +143,8 @@ public static class Step242Exporter? writer.AddEntity("REPRESENTATION_CONTEXT", Step242TextWriter.String("2D"), Step242TextWriter.String("parameter space")): null;- var outerClosedShellId = BuildClosedShell(writer, body, model, shellRepresentation.OuterShellId, vertexPoints, cartesianPointIds, vertexPointIds, edgeCurveIds, orientedEdgeIds, lineIds, circleIds, bsplineIds, ellipseIds, hyperbolaIds, surfaceIds, advancedFaceIds, pcurveContextId);+ var orientationDiagnostics = new List<KernelDiagnostic>();+ var outerClosedShellId = BuildClosedShell(writer, body, model, shellRepresentation.OuterShellId, vertexPoints, cartesianPointIds, vertexPointIds, edgeCurveIds, orientedEdgeIds, lineIds, circleIds, bsplineIds, ellipseIds, hyperbolaIds, surfaceIds, advancedFaceIds, pcurveContextId, orientationDiagnostics);EmitAuxiliaryVertexPointForVertexlessAnalyticBody(writer, body, model);if (outerClosedShellId is null){@@ -160,7 +161,7 @@ public static class Step242Exportervar orientedVoidShellIds = new List<string>();foreach (var innerShellId in shellRepresentation.InnerShellIds.OrderBy(id => id.Value)){- var innerClosedShellId = BuildClosedShell(writer, body, model, innerShellId, vertexPoints, cartesianPointIds, vertexPointIds, edgeCurveIds, orientedEdgeIds, lineIds, circleIds, bsplineIds, ellipseIds, hyperbolaIds, surfaceIds, advancedFaceIds, pcurveContextId);+ var innerClosedShellId = BuildClosedShell(writer, body, model, innerShellId, vertexPoints, cartesianPointIds, vertexPointIds, edgeCurveIds, orientedEdgeIds, lineIds, circleIds, bsplineIds, ellipseIds, hyperbolaIds, surfaceIds, advancedFaceIds, pcurveContextId, orientationDiagnostics);if (innerClosedShellId is null){return Failure($"Shell {innerShellId.Value} could not be exported.", $"Shell:{innerShellId.Value}");@@ -230,7 +231,7 @@ public static class Step242Exporter: [];return KernelResult<string>.Success(writer.Build(options.HeaderMetadata),- normalizationDiagnostics.Concat(importedPmiDiagnostics).Concat(repairDiagnostics).Concat(trimDiagnostics).Concat(preflight is null ? [] : ToKernelDiagnostics(preflight, errorsAsWarnings: true)).ToArray());+ normalizationDiagnostics.Concat(orientationDiagnostics).Concat(importedPmiDiagnostics).Concat(repairDiagnostics).Concat(trimDiagnostics).Concat(preflight is null ? [] : ToKernelDiagnostics(preflight, errorsAsWarnings: true)).ToArray());}private static void EmitAuxiliaryVertexPointForVertexlessAnalyticBody(Step242TextWriter writer, BrepBody body, TopologyModel model)@@ -270,7 +271,8 @@ public static class Step242ExporterDictionary<EdgeId, string> hyperbolaIds,Dictionary<SurfaceGeometryId, string> surfaceIds,Dictionary<FaceId, string> advancedFaceIds,- string? pcurveContextId)+ string? pcurveContextId,+ List<KernelDiagnostic> orientationDiagnostics){if (!model.TryGetShell(shellId, out var shell) || shell is null){@@ -293,6 +295,16 @@ public static class Step242ExportersurfaceIds[binding.SurfaceGeometryId] = built.Value;}+ var loopUses = shell.FaceIds.Select(model.GetFace).SelectMany(face => face.LoopIds).Select(model.GetLoop)+ .Where(loop => loop.Kind == LoopKind.Edge)+ .ToDictionary(loop => loop.Id, loop => (IReadOnlyList<(Coedge, bool)>)ResolveConnectedLoopUses(body, model, loop).Select(use => (use.Coedge, use.IsReversed)).ToArray());+ var reversedLoops = StepLoopOrientation.ReversedLoops(body, loopUses);+ var inverted = StepLoopOrientation.FacesAgainstTheirLoops(body, loopUses, reversedLoops).Where(shell.FaceIds.Contains).ToArray();+ if (inverted.Length > 0)+ orientationDiagnostics.Add(new KernelDiagnostic(KernelDiagnosticCode.ValidationFailed, KernelDiagnosticSeverity.Warning,+ $"step-export-face-normal-inverted: planar faces {string.Join(",", inverted.Select(f => f.Value))} declare an outward normal against the shell's loops; the builder bound them the wrong way round.",+ "Step242.Export.LoopOrientation"));+var faceIds = new List<string>();foreach (var face in shell.FaceIds.OrderBy(id => id.Value).Select(model.GetFace)){@@ -340,7 +352,9 @@ public static class Step242Exporter// Loop.CoedgeIds is the authoritative cyclic order. Sorting this list can// silently turn a coherent loop into a disconnected STEP EDGE_LOOP.- foreach (var loopUse in ResolveConnectedLoopUses(body, model, loop))+ var traversal = ResolveConnectedLoopUses(body, model, loop);+ if (reversedLoops.Contains(loop.Id)) traversal = traversal.Reverse().Select(use => use with { IsReversed = !use.IsReversed }).ToArray();+ foreach (var loopUse in traversal){var coedge = loopUse.Coedge;diff --git a/Aetheris.Kernel.Core/Step242/Step242Importer.cs b/Aetheris.Kernel.Core/Step242/Step242Importer.csindex 876ef50f..16a311f4 100644--- a/Aetheris.Kernel.Core/Step242/Step242Importer.cs+++ b/Aetheris.Kernel.Core/Step242/Step242Importer.cs@@ -2687,6 +2687,10 @@ public static class Step242Importer? conicalAligned: projected is not null && double.Abs(signedArea) > ComputeAreaTolerance(projected)? signedArea > 0d+ // A free-form face can turn through more than a right angle (a swept tube), where the loop's+ // polygon normal says nothing about the side; the source's same_sense with the loop's direction does.+ : surface.Kind == SurfaceGeometryKind.BSplineSurfaceWithKnots+ ? isOuter == sourceSameSense: TryDeriveSupportAlignmentFromBoundaryNormal(loop.Samples, surface, out var aligned)? aligned: isOuter;diff --git a/Aetheris.Kernel.Core/Step242/StepLoopOrientation.cs b/Aetheris.Kernel.Core/Step242/StepLoopOrientation.csnew file mode 100644index 00000000..f63ee3f4--- /dev/null+++ b/Aetheris.Kernel.Core/Step242/StepLoopOrientation.cs@@ -0,0 +1,177 @@+using Aetheris.Kernel.Core.Brep;+using Aetheris.Kernel.Core.Geometry;+using Aetheris.Kernel.Core.Math;+using Aetheris.Kernel.Core.Topology;++namespace Aetheris.Kernel.Core.Step242;++/// <summary>+/// STEP reads every face loop as running counter-clockwise about the face's outward normal (the surface normal,+/// negated when same_sense is false), outer loops counter-clockwise and holes clockwise, so that each edge of a closed+/// shell is used once in each direction. Kernel builders do not share one convention for coedge direction, and the+/// kernel's own consumers (tessellation, mass properties, the importer) never rely on it, so the writer derives it.+/// <para>+/// Two loops that share an edge must use it in opposite directions; that fixes every loop relative to its neighbours,+/// leaving one choice per connected set of loops. Planar faces decide it: their loops' signed areas about the outward+/// normal, the largest loop of each face counted as its outer boundary. A set with no planar loop keeps its authored+/// direction, as does any set whose edge uses cannot be made consistent.+/// </para>+/// </summary>+internal static class StepLoopOrientation+{+ /// <summary>The loops whose authored direction is reversed on export.</summary>+ public static IReadOnlySet<LoopId> ReversedLoops(BrepBody body, IReadOnlyDictionary<LoopId, IReadOnlyList<(Coedge Coedge, bool IsReversed)>> uses)+ {+ var byEdge = new Dictionary<EdgeId, List<(LoopId Loop, bool Reversed)>>();+ foreach (var (loop, loopUses) in uses)+ foreach (var use in loopUses)+ {+ if (!byEdge.TryGetValue(use.Coedge.EdgeId, out var list)) byEdge[use.Coedge.EdgeId] = list = [];+ list.Add((loop, use.IsReversed));+ }++ // flip[a] ^ flip[b] must equal (reversedA == reversedB) for every edge used once by a and once by b.+ var neighbours = uses.Keys.ToDictionary(loop => loop, _ => new List<(LoopId Other, bool Differ)>());+ foreach (var pair in byEdge.Values)+ {+ if (pair.Count != 2) continue;+ var (a, b) = (pair[0], pair[1]);+ if (a.Loop == b.Loop) continue; // a seam: its two uses do not depend on the loop's direction+ var differ = a.Reversed == b.Reversed;+ neighbours[a.Loop].Add((b.Loop, differ));+ neighbours[b.Loop].Add((a.Loop, differ));+ }++ var faceOfLoop = new Dictionary<LoopId, FaceId>();+ foreach (var face in body.Topology.Faces)+ foreach (var loop in face.LoopIds) faceOfLoop[loop] = face.Id;+ var reversed = new HashSet<LoopId>();+ var flip = new Dictionary<LoopId, bool>();+ foreach (var seed in uses.Keys.OrderBy(loop => loop.Value))+ {+ if (flip.ContainsKey(seed)) continue;+ var component = new List<LoopId>();+ var consistent = true;+ flip[seed] = false;+ var queue = new Queue<LoopId>([seed]);+ while (queue.Count > 0)+ {+ var loop = queue.Dequeue();+ component.Add(loop);+ foreach (var (other, differ) in neighbours[loop])+ {+ var want = flip[loop] ^ differ;+ if (flip.TryGetValue(other, out var have)) { if (have != want) consistent = false; continue; }+ flip[other] = want;+ queue.Enqueue(other);+ }+ }+ if (!consistent) continue;++ // Score the component's relative solution by its planar loops: positive when they wind as STEP reads them.+ var score = 0d;+ foreach (var group in component.GroupBy(loop => faceOfLoop.TryGetValue(loop, out var f) ? f : (FaceId?)null))+ {+ var face = group.Key;+ if (face is null || !body.Bindings.TryGetFaceBinding(face.Value, out var binding)+ || !body.Geometry.TryGetSurface(binding.SurfaceGeometryId, out var surface) || surface?.Plane is not { } plane) continue;+ var normal = plane.Normal.ToVector() * (binding.Orientation.IsAlignedWithSurface ? 1d : -1d);+ var areas = group.Select(loop => (Loop: loop, Area: SignedArea(body, uses[loop], normal) * (flip[loop] ? -1d : 1d))).ToArray();+ if (areas.Length == 0) continue;+ // The face's outer boundary is its largest loop, which may lie in another component (a bore's rim+ // is linked to the bore, not to the face's outline).+ var outer = body.Topology.GetFace(face.Value).LoopIds.Where(uses.ContainsKey)+ .MaxBy(loop => double.Abs(SignedArea(body, uses[loop], normal)));+ foreach (var (loop, area) in areas) score += loop == outer ? area : -area;+ }+ var flipAll = score < 0d;+ foreach (var loop in component)+ if (flip[loop] ^ flipAll) reversed.Add(loop);+ }+ return reversed;+ }++ /// <summary>+ /// Planar faces whose outer loop, as written, runs clockwise about the outward normal the face binding declares.+ /// With every edge used once each way the loops agree with each other, so such a face's binding is the one that is+ /// wrong: its normal points into the material.+ /// </summary>+ public static IReadOnlyList<FaceId> FacesAgainstTheirLoops(BrepBody body, IReadOnlyDictionary<LoopId, IReadOnlyList<(Coedge Coedge, bool IsReversed)>> uses, IReadOnlySet<LoopId> reversed)+ {+ var result = new List<FaceId>();+ foreach (var face in body.Topology.Faces)+ {+ if (!body.Bindings.TryGetFaceBinding(face.Id, out var binding)+ || !body.Geometry.TryGetSurface(binding.SurfaceGeometryId, out var surface) || surface?.Plane is not { } plane) continue;+ var normal = plane.Normal.ToVector() * (binding.Orientation.IsAlignedWithSurface ? 1d : -1d);+ var areas = face.LoopIds.Where(uses.ContainsKey)+ .Select(loop => SignedArea(body, uses[loop], normal) * (reversed.Contains(loop) ? -1d : 1d)).ToArray();+ if (areas.Length > 0 && areas.MaxBy(double.Abs) < 0d) result.Add(face.Id);+ }+ return result;+ }++ private static double SignedArea(BrepBody body, IReadOnlyList<(Coedge Coedge, bool IsReversed)> loop, Vector3D normal)+ {+ var points = new List<Point3D>();+ foreach (var (coedge, isReversed) in loop)+ {+ var samples = Sample(body, coedge.EdgeId);+ if (samples is null) return 0d;+ if (isReversed) samples.Reverse();+ points.AddRange(samples.Take(samples.Count - 1));+ }+ var sum = Vector3D.Zero;+ for (var i = 0; i < points.Count; i++)+ {+ var (a, b) = (points[i], points[(i + 1) % points.Count]);+ sum += new Vector3D(a.X, a.Y, a.Z).Cross(new Vector3D(b.X, b.Y, b.Z));+ }+ return sum.Dot(normal) / 2d;+ }++ /// <summary>Points along an edge from its start vertex to its end vertex.</summary>+ private static List<Point3D>? Sample(BrepBody body, EdgeId edgeId)+ {+ var edge = body.Topology.GetEdge(edgeId);+ if (!body.TryGetVertexPoint(edge.StartVertexId, out var start) || !body.TryGetVertexPoint(edge.EndVertexId, out var end)) return null;+ if (!body.Bindings.TryGetEdgeBinding(edgeId, out var binding) || !body.TryGetEdgeCurveGeometry(edgeId, out var curve) || curve is null)+ return [start, end];+ Func<double, Point3D>? evaluate = curve.Kind switch+ {+ CurveGeometryKind.Circle3 when curve.Circle3 is { } circle => circle.Evaluate,+ CurveGeometryKind.Ellipse3 when curve.Ellipse3 is { } ellipse => ellipse.Evaluate,+ CurveGeometryKind.BSpline3 when curve.BSpline3 is { } spline => spline.Evaluate,+ CurveGeometryKind.Hyperbola3 when curve.Hyperbola3 is { } hyperbola => hyperbola.Evaluate,+ _ => null,+ };+ if (evaluate is null) return [start, end];+ var interval = binding.TrimInterval+ ?? (curve.BSpline3 is { } s ? new ParameterInterval(s.DomainStart, s.DomainEnd)+ : curve.Circle3 is { } c ? Arc(c.Center, c.XAxis.ToVector() * c.Radius, c.YAxis.ToVector() * c.Radius)+ : curve.Ellipse3 is { } e ? Arc(e.Center, e.XAxis.ToVector() * e.MajorRadius, e.YAxis.ToVector() * e.MinorRadius)+ : (ParameterInterval?)null);+ if (interval is not { } range) return [start, end];+ const int count = 48;+ var samples = Enumerable.Range(0, count + 1).Select(i => evaluate(range.Start + (range.End - range.Start) * i / count)).ToList();+ // The curve's parameter runs with the edge unless the binding says otherwise; an open edge's endpoints settle it.+ var forward = edge.StartVertexId == edge.EndVertexId+ ? binding.OrientedEdgeSense+ : (samples[0] - start).Length + (samples[^1] - end).Length <= (samples[0] - end).Length + (samples[^1] - start).Length;+ if (!forward) samples.Reverse();+ return samples;++ // An untrimmed arc runs between its vertices' angles, the way the binding's sense says (all the way round when+ // the edge is closed).+ ParameterInterval Arc(Point3D center, Vector3D x, Vector3D y)+ {+ double Angle(Point3D p) { var d = p - center; return double.Atan2(d.Dot(y) / y.Dot(y), d.Dot(x) / x.Dot(x)); }+ var a0 = Angle(start);+ var turn = 2d * double.Pi;+ var sweep = edge.StartVertexId == edge.EndVertexId ? turn : ((Angle(end) - a0) % turn + turn) % turn;+ if (!binding.OrientedEdgeSense) sweep -= turn;+ if (edge.StartVertexId == edge.EndVertexId && !binding.OrientedEdgeSense) sweep = -turn;+ return new ParameterInterval(double.Min(a0, a0 + sweep), double.Max(a0, a0 + sweep));+ }+ }+}diff --git a/Aetheris.Kernel.Firmament/Materializer/WireCoils.cs b/Aetheris.Kernel.Firmament/Materializer/WireCoils.csindex 56370ef1..161b0b01 100644--- a/Aetheris.Kernel.Firmament/Materializer/WireCoils.cs+++ b/Aetheris.Kernel.Firmament/Materializer/WireCoils.cs@@ -268,7 +268,9 @@ internal static class WireCoilBRepMaterializerfor (var q = 0; q < 4; q++) { net = new Point3D[4][]; for (var u = 0; u < 4; u++) { var alpha = u / 3d; var up = Direction3D.Create(stations[i].Up.ToVector() * (1d - alpha) + stations[i + 1].Up.ToVector() * alpha); var tangent = Direction3D.Create(stations[i].Tangent.ToVector() * (1d - alpha) + stations[i + 1].Tangent.ToVector() * alpha); up = Direction3D.Create(up.ToVector() - tangent.ToVector() * WireFormAuthoring.Dot(up.ToVector(), tangent.ToVector())); var right = Direction3D.Create(WireFormAuthoring.Cross(tangent.ToVector(), up.ToVector())); net[u] = Quarter(c0[u], up, right, r, q); } nets[q] = net; }var longitudinal = new EdgeId[4];for (var q = 0; q < 4; q++) { longitudinal[q] = builder.AddEdge(vertices[i, q], vertices[i + 1, q]); var spline = Bezier(nets[q].Select(row => row[0]).ToArray()); geometry.AddCurve(new(curves), CurveGeometry.FromBSpline(spline)); bindings.AddEdgeBinding(new(longitudinal[q], new(curves++), new ParameterInterval(0, 1))); }- for (var q = 0; q < 4; q++) { var surface = new BSplineSurfaceWithKnots(3, 3, nets[q], "UNSPECIFIED", false, false, false, [4, 4], [4, 4], [0d, 1d], [0d, 1d], "UNSPECIFIED"); geometry.AddSurface(new(surfaces), SurfaceGeometry.FromBSplineSurfaceWithKnots(surface)); var face = AddFace(builder, [(longitudinal[q], false), (rings[i + 1, q], false), (longitudinal[(q + 1) % 4], true), (rings[i, q], true)]); bindings.AddFaceBinding(new(face, new(surfaces++))); faces.Add(face); }+ for (var q = 0; q < 4; q++) { var surface = new BSplineSurfaceWithKnots(3, 3, nets[q], "UNSPECIFIED", false, false, false, [4, 4], [4, 4], [0d, 1d], [0d, 1d], "UNSPECIFIED"); geometry.AddSurface(new(surfaces), SurfaceGeometry.FromBSplineSurfaceWithKnots(surface)); // The net runs along the wire in u and counter-clockwise about it in v, so its normal points into the+ // wire: the face is opposed to its surface, and its loop runs the other way round the patch.+ var face = AddFace(builder, [(rings[i, q], false), (longitudinal[(q + 1) % 4], false), (rings[i + 1, q], true), (longitudinal[q], true)]); bindings.AddFaceBinding(new(face, new(surfaces++), IsAlignedWithSurface: false)); faces.Add(face); }}var startPlane = new PlaneSurface(stations[0].Point, Direction3D.Create(stations[0].Tangent.ToVector() * -1d), stations[0].Up); var endPlane = new PlaneSurface(stations[^1].Point, stations[^1].Tangent, stations[^1].Up);var start = AddFace(builder, Enumerable.Range(0, 4).Select(q => (rings[0, 3 - q], true)).ToArray()); geometry.AddSurface(new(surfaces), SurfaceGeometry.FromPlane(startPlane)); bindings.AddFaceBinding(new(start, new(surfaces++))); faces.Add(start);diff --git a/docs/development/reports/2026-11/HOLLOW-GENERALIZATION.md b/docs/development/reports/2026-11/HOLLOW-GENERALIZATION.mdindex 4d40d19b..733c9511 100644--- a/docs/development/reports/2026-11/HOLLOW-GENERALIZATION.md+++ b/docs/development/reports/2026-11/HOLLOW-GENERALIZATION.md@@ -199,7 +199,7 @@ The two outliers had four unrelated import defects, each of which picked the wro| STC-06 | 179703.7 | 3323539.5 | 3323540.5 || CTC-05 | 9277231.0 | 12726632.0 | 12694917.8 || FTC-11 | 5271.3 | 5134.4 | 5135.1 |-| STC-10 | 190412.0 | 187534.6 | 188312.8 |+| STC-10 | 190412.0 | 188525.9 | 188312.8 |Those four files re-hash; FTC-08 does not move (503632.9 against OCCT's 503633.0). The two teststhat asserted STC-06 stays orientation-ambiguous now assert it resolves, and to OCCT's volume.@@ -208,20 +208,43 @@ CTC-05's remaining +0.25% is one torus face (a quarter-tube fillet 63° long): t65536-triangle budget before refining the trim, and chord-to-arc slivers along its circular edges add 986 mm² of area.The display tessellation of the same face matches OCCT's area. It is an estimator limit, not a topology defect.-### Found, not fixed: cap loops across the kernel+### Loop direction across the kernelA sweep of the 278 canonical fixtures that export STEP found edges used the same way twice in 230 of them, starting-with `Basics/box`: `BrepExtrude` and the hand-built box routes (`BrepBooleanBoxCylinderHoleBuilder` and others) wind both-caps counter-clockwise about +Z, so the bottom cap is clockwise about its outward normal. OCCT's volume is right, and the-importer re-solves orientation, so nothing in the kernel noticed. Gear routes have hundreds of such edges each. A-receiving system that trusts the loops (or heals them) sees inverted caps. Fixing it changes every box-derived STEP-hash and needs its own pass; the test this change adds (`AssertEdgesUsedOnceEachWay`) is the check to extend to those-builders.+with `Basics/box`. The kernel has no shared loop convention: `BrepExtrude` wound both caps about the extrude normal,+`BrepBooleanBoxCylinderHoleBuilder` both caps and their holes about +Z, the gear routes their own way. Nothing in the+kernel reads it (tessellation, mass properties and the importer derive orientation themselves), so only STEP saw it;+OCCT tolerates it on planes and cylinders.++STEP owns the contract, so the writer now derives loop direction (`StepLoopOrientation`). Two loops sharing an edge+must use it in opposite directions; that fixes every loop up to one choice per connected set, which the set's planar+faces settle (signed area about the declared outward normal, each face's largest loop as its outer boundary). After it,+every closed solid in the sweep uses each edge once each way. `BrepExtrude`'s caps are also corrected at source, which+keeps box round-trip text stable.++That pass exposed builders whose faces declare the wrong outward normal, which the inconsistent loops had masked:++- `WireCoils`: the tube's B-spline nets have normals into the wire but were bound aligned. Fixed (bound opposed, loops+ reversed). The STEP importer's B-spline alignment fallback, a polygon-normal test that is meaningless on a face+ turning through more than a right angle, now reads same_sense instead.+- Still open, now reported by the writer as `step-export-face-normal-inverted` (a warning; the CLI does not print+ export warnings): 42 fixtures, by planar face count: sheet-metal lowering (most of the 7–20 counts), structural+ members and joints, PlasticShell rib/standoff faces, `EdgeFinish` end faces of a bounded fillet, the counterbore+ shoulder, `EquationCurves` arch caps, `Revolve/arbitrary-axis`, one section-chain duct. OCCT reorients these on read+ and our importer re-solves them, so volumes are right; a receiving system that trusts same_sense sees faces turned+ inward.++`BrepRevolvedShell` now binds an annulus's larger circle as its outer boundary (the writer had labelled whichever+circle came first).++The 2026-11-06 V8 display meshes re-mesh from different loop start points (the parts round-trip through STEP); all 21+definitions keep their area, signed volume and bounds, and the archive was refrozen (see the fixture README). STC-10+moves to 188525.9 (OCCT 188312.8) with the B-spline fallback.## Next- Closed vessels: the cavity is a second shell; the section stack and the revolved shell both need void shells.- Apexes and poles in `BrepRevolvedShell` (pointed cones, domed bottoms).- Perforation onto the general hollow body instead of its own cylinder builder.-- Cap loop orientation in `BrepExtrude` and the box builders (above).+- Outward normals in the builders listed above.- Phases 4 and 5 as planned.diff --git a/fixtures/Canonical/EditableV8/README.md b/fixtures/Canonical/EditableV8/README.mdindex bf803fce..b0522600 100644--- a/fixtures/Canonical/EditableV8/README.md+++ b/fixtures/Canonical/EditableV8/README.md@@ -27,6 +27,16 @@ Linux meshes have identical indices and array lengths, with maximum positionand normal differences within the existing component bounds. No design dimensionsor exact construction geometry changed.+On 2026-11-06 the STEP writer began deriving loop direction (each edge used once each+way, counter-clockwise about the outward normal), and the coil sweep's tube faces were+bound opposed to their B-spline nets, whose normals point into the wire. The parts+round-trip through STEP, so 19 of the 21 definitions re-mesh from different loop start+points. Before refreshing, every definition's triangle area, signed volume and bounding+box were compared with the prior archive and agreed within `1e-6 mm²`, `1e-6 mm³` and+`1e-9 mm`; one definition has 8 fewer triangles for the same area. The archive was+frozen from the Linux projection, which earlier comparisons place within the component+bounds of the Windows one.+To recover the archive, run the demo at the qualified current revision withdefault `V8Spec` (see the JSON's `reproduction` field), then from the currentrepository root:diff --git a/fixtures/Canonical/EditableV8/geometry-reference.expected.json b/fixtures/Canonical/EditableV8/geometry-reference.expected.jsonindex f4f2834a..dbfb9527 100644--- a/fixtures/Canonical/EditableV8/geometry-reference.expected.json+++ b/fixtures/Canonical/EditableV8/geometry-reference.expected.json@@ -6,7 +6,7 @@"bindings": [{"name": "Rod1",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.7071067811865477,-0.7071067811865477,@@ -28,7 +28,7 @@},{"name": "Piston1",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865477,-0.7071067811865477,@@ -50,7 +50,7 @@},{"name": "PistonSkirt1",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865477,-0.7071067811865477,@@ -72,7 +72,7 @@},{"name": "PistonLugA1",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,-0.7071067811865477,@@ -94,7 +94,7 @@},{"name": "PistonLugB1",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,-0.7071067811865477,@@ -116,7 +116,7 @@},{"name": "WristPin1",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865477,-0.7071067811865477,@@ -138,7 +138,7 @@},{"name": "Cylinder1",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,-0.7071067811865476,@@ -160,7 +160,7 @@},{"name": "Head1",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,-0.7071067811865476,@@ -182,7 +182,7 @@},{"name": "IntakeValve1",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,-0.7071067811865476,@@ -204,7 +204,7 @@},{"name": "IntakeStem1",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -226,7 +226,7 @@},{"name": "IntakeRetainer1",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -248,7 +248,7 @@},{"name": "IntakeSpring1",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -270,7 +270,7 @@},{"name": "ExhaustValve1",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,-0.7071067811865476,@@ -292,7 +292,7 @@},{"name": "ExhaustStem1",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -314,7 +314,7 @@},{"name": "ExhaustRetainer1",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -336,7 +336,7 @@},{"name": "ExhaustSpring1",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -358,7 +358,7 @@},{"name": "Rod2",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.45919488658892854,0.8883355537917986,@@ -380,7 +380,7 @@},{"name": "Piston2",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865477,0.7071067811865477,@@ -402,7 +402,7 @@},{"name": "PistonSkirt2",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865477,0.7071067811865477,@@ -424,7 +424,7 @@},{"name": "PistonLugA2",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,0.7071067811865477,@@ -446,7 +446,7 @@},{"name": "PistonLugB2",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,0.7071067811865477,@@ -468,7 +468,7 @@},{"name": "WristPin2",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865477,0.7071067811865477,@@ -490,7 +490,7 @@},{"name": "Cylinder2",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,0.7071067811865476,@@ -512,7 +512,7 @@},{"name": "Head2",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,0.7071067811865476,@@ -534,7 +534,7 @@},{"name": "IntakeValve2",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,0.7071067811865476,@@ -556,7 +556,7 @@},{"name": "IntakeStem2",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -578,7 +578,7 @@},{"name": "IntakeRetainer2",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -600,7 +600,7 @@},{"name": "IntakeSpring2",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.0746075724068663,0.0746075724068663,@@ -622,7 +622,7 @@},{"name": "ExhaustValve2",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,0.7071067811865476,@@ -644,7 +644,7 @@},{"name": "ExhaustStem2",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -666,7 +666,7 @@},{"name": "ExhaustRetainer2",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -688,7 +688,7 @@},{"name": "ExhaustSpring2",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.0746075724068663,0.0746075724068663,@@ -710,7 +710,7 @@},{"name": "Rod3",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.8883355537917985,-0.4591948865889283,@@ -732,7 +732,7 @@},{"name": "Piston3",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865477,-0.7071067811865475,@@ -754,7 +754,7 @@},{"name": "PistonSkirt3",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865477,-0.7071067811865475,@@ -776,7 +776,7 @@},{"name": "PistonLugA3",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,-0.7071067811865475,@@ -798,7 +798,7 @@},{"name": "PistonLugB3",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,-0.7071067811865475,@@ -820,7 +820,7 @@},{"name": "WristPin3",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865477,-0.7071067811865475,@@ -842,7 +842,7 @@},{"name": "Cylinder3",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,-0.7071067811865476,@@ -864,7 +864,7 @@},{"name": "Head3",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,-0.7071067811865476,@@ -886,7 +886,7 @@},{"name": "IntakeValve3",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,-0.7071067811865476,@@ -908,7 +908,7 @@},{"name": "IntakeStem3",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -930,7 +930,7 @@},{"name": "IntakeRetainer3",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -952,7 +952,7 @@},{"name": "IntakeSpring3",- "meshSha256": "B6FF05DB169DD57FB23467CF7A4BD41C852347F44B99F04B51917777A508EE4F",+ "meshSha256": "028D8966286F71D15B7DCFF96886051EC5BF2E385B9B2B87D34F2FF0B20220C5","rest": [0.05609244526728045,0.05609244526728045,@@ -974,7 +974,7 @@},{"name": "ExhaustValve3",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,-0.7071067811865476,@@ -996,7 +996,7 @@},{"name": "ExhaustStem3",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -1018,7 +1018,7 @@},{"name": "ExhaustRetainer3",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -1040,7 +1040,7 @@},{"name": "ExhaustSpring3",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -1062,7 +1062,7 @@},{"name": "Rod4",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.7071067811865475,0.7071067811865476,@@ -1084,7 +1084,7 @@},{"name": "Piston4",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865474,0.7071067811865477,@@ -1106,7 +1106,7 @@},{"name": "PistonSkirt4",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865474,0.7071067811865477,@@ -1128,7 +1128,7 @@},{"name": "PistonLugA4",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865474,0.7071067811865477,@@ -1150,7 +1150,7 @@},{"name": "PistonLugB4",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865474,0.7071067811865477,@@ -1172,7 +1172,7 @@},{"name": "WristPin4",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865474,0.7071067811865477,@@ -1194,7 +1194,7 @@},{"name": "Cylinder4",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,0.7071067811865476,@@ -1216,7 +1216,7 @@},{"name": "Head4",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,0.7071067811865476,@@ -1238,7 +1238,7 @@},{"name": "IntakeValve4",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,0.7071067811865476,@@ -1260,7 +1260,7 @@},{"name": "IntakeStem4",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -1282,7 +1282,7 @@},{"name": "IntakeRetainer4",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -1304,7 +1304,7 @@},{"name": "IntakeSpring4",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.0746075724068663,0.0746075724068663,@@ -1326,7 +1326,7 @@},{"name": "ExhaustValve4",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,0.7071067811865476,@@ -1348,7 +1348,7 @@},{"name": "ExhaustStem4",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -1370,7 +1370,7 @@},{"name": "ExhaustRetainer4",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -1392,7 +1392,7 @@},{"name": "ExhaustSpring4",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.0746075724068663,0.0746075724068663,@@ -1414,7 +1414,7 @@},{"name": "Rod5",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.45919488658892843,-0.8883355537917984,@@ -1436,7 +1436,7 @@},{"name": "Piston5",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865476,-0.7071067811865476,@@ -1458,7 +1458,7 @@},{"name": "PistonSkirt5",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865476,-0.7071067811865476,@@ -1480,7 +1480,7 @@},{"name": "PistonLugA5",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,-0.7071067811865476,@@ -1502,7 +1502,7 @@},{"name": "PistonLugB5",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,-0.7071067811865476,@@ -1524,7 +1524,7 @@},{"name": "WristPin5",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865476,-0.7071067811865476,@@ -1546,7 +1546,7 @@},{"name": "Cylinder5",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,-0.7071067811865476,@@ -1568,7 +1568,7 @@},{"name": "Head5",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,-0.7071067811865476,@@ -1590,7 +1590,7 @@},{"name": "IntakeValve5",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,-0.7071067811865476,@@ -1612,7 +1612,7 @@},{"name": "IntakeStem5",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -1634,7 +1634,7 @@},{"name": "IntakeRetainer5",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -1656,7 +1656,7 @@},{"name": "IntakeSpring5",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -1678,7 +1678,7 @@},{"name": "ExhaustValve5",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,-0.7071067811865476,@@ -1700,7 +1700,7 @@},{"name": "ExhaustStem5",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -1722,7 +1722,7 @@},{"name": "ExhaustRetainer5",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -1744,7 +1744,7 @@},{"name": "ExhaustSpring5",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -1766,7 +1766,7 @@},{"name": "Rod6",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.7071067811865476,0.7071067811865476,@@ -1788,7 +1788,7 @@},{"name": "Piston6",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865476,0.7071067811865476,@@ -1810,7 +1810,7 @@},{"name": "PistonSkirt6",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865476,0.7071067811865476,@@ -1832,7 +1832,7 @@},{"name": "PistonLugA6",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,0.7071067811865476,@@ -1854,7 +1854,7 @@},{"name": "PistonLugB6",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,0.7071067811865476,@@ -1876,7 +1876,7 @@},{"name": "WristPin6",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865476,0.7071067811865476,@@ -1898,7 +1898,7 @@},{"name": "Cylinder6",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,0.7071067811865476,@@ -1920,7 +1920,7 @@},{"name": "Head6",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,0.7071067811865476,@@ -1942,7 +1942,7 @@},{"name": "IntakeValve6",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,0.7071067811865476,@@ -1964,7 +1964,7 @@},{"name": "IntakeStem6",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -1986,7 +1986,7 @@},{"name": "IntakeRetainer6",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -2008,7 +2008,7 @@},{"name": "IntakeSpring6",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.07460757240686638,0.07460757240686638,@@ -2030,7 +2030,7 @@},{"name": "ExhaustValve6",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,0.7071067811865476,@@ -2052,7 +2052,7 @@},{"name": "ExhaustStem6",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -2074,7 +2074,7 @@},{"name": "ExhaustRetainer6",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -2096,7 +2096,7 @@},{"name": "ExhaustSpring6",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.07460757240686638,0.07460757240686638,@@ -2118,7 +2118,7 @@},{"name": "Rod7",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.7071067811865476,-0.7071067811865476,@@ -2140,7 +2140,7 @@},{"name": "Piston7",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865476,-0.7071067811865476,@@ -2162,7 +2162,7 @@},{"name": "PistonSkirt7",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865476,-0.7071067811865476,@@ -2184,7 +2184,7 @@},{"name": "PistonLugA7",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,-0.7071067811865476,@@ -2206,7 +2206,7 @@},{"name": "PistonLugB7",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865476,-0.7071067811865476,@@ -2228,7 +2228,7 @@},{"name": "WristPin7",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865476,-0.7071067811865476,@@ -2250,7 +2250,7 @@},{"name": "Cylinder7",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,-0.7071067811865476,@@ -2272,7 +2272,7 @@},{"name": "Head7",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,-0.7071067811865476,@@ -2294,7 +2294,7 @@},{"name": "IntakeValve7",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,-0.7071067811865476,@@ -2316,7 +2316,7 @@},{"name": "IntakeStem7",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -2338,7 +2338,7 @@},{"name": "IntakeRetainer7",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -2360,7 +2360,7 @@},{"name": "IntakeSpring7",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.07460757240686637,0.07460757240686637,@@ -2382,7 +2382,7 @@},{"name": "ExhaustValve7",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,-0.7071067811865476,@@ -2404,7 +2404,7 @@},{"name": "ExhaustStem7",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,-0.7071067811865476,@@ -2426,7 +2426,7 @@},{"name": "ExhaustRetainer7",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,-0.7071067811865476,@@ -2448,7 +2448,7 @@},{"name": "ExhaustSpring7",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [0.0746075724068663,0.0746075724068663,@@ -2470,7 +2470,7 @@},{"name": "Rod8",- "meshSha256": "B52987EF34AD28D80BDAB55CFFCEB166B2F19EE43AE3D1C5AD8A7FEF788701CD",+ "meshSha256": "45DF390ABEE36BF431542EAC4ADBA9DA8D281E59A605FC749A089E138CF34F8D","rest": [0.8883355537917985,0.45919488658892843,@@ -2492,7 +2492,7 @@},{"name": "Piston8",- "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "meshSha256": "7C59310CAE9E4A05414068939A48587A1E47811EE0205DF4ABFA5AFFAA4677B7","rest": [0.7071067811865477,0.7071067811865477,@@ -2514,7 +2514,7 @@},{"name": "PistonSkirt8",- "meshSha256": "49C905BB5C233A4534B964D1C8CB2EAA64B93B2A855D54AA9B1074C8C31F3569",+ "meshSha256": "647C14E409C6B906480B9AE24A6286C6C4AD4CBC51DA9B9DE7883AB9B651EAC0","rest": [0.7071067811865477,0.7071067811865477,@@ -2536,7 +2536,7 @@},{"name": "PistonLugA8",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,0.7071067811865477,@@ -2558,7 +2558,7 @@},{"name": "PistonLugB8",- "meshSha256": "84E05EAB63B807074DBCD34AB9A4F4C01DB2B401BB37AFBDF90FCB4B2B95E46D",+ "meshSha256": "F4E6B00DD0E6053AC13F5FC6D44755F6EA802AAA6B524258DE78A7AB0042BCB5","rest": [0.7071067811865477,0.7071067811865477,@@ -2580,7 +2580,7 @@},{"name": "WristPin8",- "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "meshSha256": "2E43D51928C80A1914779384DA3176D0F9D669E9DD23F82DF056BB153216A5C2","rest": [0.7071067811865477,0.7071067811865477,@@ -2602,7 +2602,7 @@},{"name": "Cylinder8",- "meshSha256": "BA87301F551F57AE156A685F7DF8A9BE3C2616779CD39DD8928114979010A7E7",+ "meshSha256": "54194CFC031DA06B832A12F08588BC74E5DD78ABCEE3561F4BA34A52D03AB401","rest": [0.7071067811865476,0.7071067811865476,@@ -2624,7 +2624,7 @@},{"name": "Head8",- "meshSha256": "442B0F499FA15BD76464D481F22A42F797E65F1B31F721132BD9CF677222D8C1",+ "meshSha256": "7393A4EB5937C0FDB5822B2679FA97C21EFA9CC0F84C153477B6DC582E585E26","rest": [0.7071067811865476,0.7071067811865476,@@ -2646,7 +2646,7 @@},{"name": "IntakeValve8",- "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "meshSha256": "C7534FCE2CE0B817F418D0D4A45E60F16774AA980721B52B349BCD10E1D270DC","rest": [0.7071067811865476,0.7071067811865476,@@ -2668,7 +2668,7 @@},{"name": "IntakeStem8",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -2690,7 +2690,7 @@},{"name": "IntakeRetainer8",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -2712,7 +2712,7 @@},{"name": "IntakeSpring8",- "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "meshSha256": "BEB6C3D8A5837F40DF129760BD028B66FB07AE7C180CCCB84699695C39AF8204","rest": [-0.07460757240686637,0.07460757240686637,@@ -2734,7 +2734,7 @@},{"name": "ExhaustValve8",- "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "meshSha256": "7B0657B2B030BD26A6C3741FF2CF3AD058BDEAB2B846E79866A30BD6D61BB948","rest": [0.7071067811865476,0.7071067811865476,@@ -2756,7 +2756,7 @@},{"name": "ExhaustStem8",- "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "meshSha256": "0C5AE9DC5B058F0195266C67521303AA349F66ADA33F921ACAC6781648EA7D77","rest": [0.7071067811865476,0.7071067811865476,@@ -2778,7 +2778,7 @@},{"name": "ExhaustRetainer8",- "meshSha256": "D700D5C10B9D2EAC7A23C5D7EA50F1809165148FF7B3AA4D71E3197F0340A5AE",+ "meshSha256": "22639FA429846AE4682FB717B62AA20C16250BE171C48DF622605DE3BA50B073","rest": [0.7071067811865476,0.7071067811865476,@@ -2800,7 +2800,7 @@},{"name": "ExhaustSpring8",- "meshSha256": "B6FF05DB169DD57FB23467CF7A4BD41C852347F44B99F04B51917777A508EE4F",+ "meshSha256": "028D8966286F71D15B7DCFF96886051EC5BF2E385B9B2B87D34F2FF0B20220C5","rest": [-0.05609244526728045,0.05609244526728045,@@ -2822,7 +2822,7 @@},{"name": "Crankpin1",- "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "meshSha256": "F016E02AA04CEF556C144EE6343633BC85AEC0AD14D92AB090C454779813B2DC","rest": [1.0000000000000002,0,@@ -2888,7 +2888,7 @@},{"name": "Crankpin2",- "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "meshSha256": "F016E02AA04CEF556C144EE6343633BC85AEC0AD14D92AB090C454779813B2DC","rest": [1,0,@@ -2954,7 +2954,7 @@},{"name": "Crankpin3",- "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "meshSha256": "F016E02AA04CEF556C144EE6343633BC85AEC0AD14D92AB090C454779813B2DC","rest": [1,0,@@ -3020,7 +3020,7 @@},{"name": "Crankpin4",- "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "meshSha256": "F016E02AA04CEF556C144EE6343633BC85AEC0AD14D92AB090C454779813B2DC","rest": [1,0,@@ -3086,7 +3086,7 @@},{"name": "MainJournal1",- "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "meshSha256": "4B765DFF00DE305ED7ED3CA6B6FC3FEAF302176AD98C41ACB1A2A80E0D4D1FB6","rest": [1,0,@@ -3108,7 +3108,7 @@},{"name": "MainSupport1",- "meshSha256": "1968F43450CF223966E275599722AC3C7E374C1D526F808C6CB2A827A1911316",+ "meshSha256": "A1D268265727EAF8D8AFF808C146015D877965A17A432CCB577E9F4FF355A11D","rest": [1,0,@@ -3130,7 +3130,7 @@},{"name": "MainJournal2",- "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "meshSha256": "4B765DFF00DE305ED7ED3CA6B6FC3FEAF302176AD98C41ACB1A2A80E0D4D1FB6","rest": [1,0,@@ -3152,7 +3152,7 @@},{"name": "MainSupport2",- "meshSha256": "1968F43450CF223966E275599722AC3C7E374C1D526F808C6CB2A827A1911316",+ "meshSha256": "A1D268265727EAF8D8AFF808C146015D877965A17A432CCB577E9F4FF355A11D","rest": [1,0,@@ -3174,7 +3174,7 @@},{"name": "MainJournal3",- "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "meshSha256": "4B765DFF00DE305ED7ED3CA6B6FC3FEAF302176AD98C41ACB1A2A80E0D4D1FB6","rest": [1,0,@@ -3196,7 +3196,7 @@},{"name": "MainSupport3",- "meshSha256": "1968F43450CF223966E275599722AC3C7E374C1D526F808C6CB2A827A1911316",+ "meshSha256": "A1D268265727EAF8D8AFF808C146015D877965A17A432CCB577E9F4FF355A11D","rest": [1,0,@@ -3218,7 +3218,7 @@},{"name": "MainJournal4",- "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "meshSha256": "4B765DFF00DE305ED7ED3CA6B6FC3FEAF302176AD98C41ACB1A2A80E0D4D1FB6","rest": [1,0,@@ -3240,7 +3240,7 @@},{"name": "MainSupport4",- "meshSha256": "1968F43450CF223966E275599722AC3C7E374C1D526F808C6CB2A827A1911316",+ "meshSha256": "A1D268265727EAF8D8AFF808C146015D877965A17A432CCB577E9F4FF355A11D","rest": [1,0,@@ -3262,7 +3262,7 @@},{"name": "MainJournal5",- "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "meshSha256": "4B765DFF00DE305ED7ED3CA6B6FC3FEAF302176AD98C41ACB1A2A80E0D4D1FB6","rest": [1,0,@@ -3284,7 +3284,7 @@},{"name": "MainSupport5",- "meshSha256": "1968F43450CF223966E275599722AC3C7E374C1D526F808C6CB2A827A1911316",+ "meshSha256": "A1D268265727EAF8D8AFF808C146015D877965A17A432CCB577E9F4FF355A11D","rest": [1,0,@@ -3350,7 +3350,7 @@},{"name": "Flywheel",- "meshSha256": "0FE7330CB6DCD1763512D389EC2A2B1A19B89A699F7B2408F0FE691558128345",+ "meshSha256": "897A861A36DC609D54C4C0C82E10B7BD4234B587E7A358D4AECF546B02759290","rest": [1,0,@@ -3372,7 +3372,7 @@},{"name": "CamshaftRight",- "meshSha256": "D249DFB5E8AC3165E0D48A6FC893F856C6B3577369E64257A252640D5888F6D8",+ "meshSha256": "F11241E60ABC63AC1A3C65608AE1418D05AEBC8E08F93FC952E1BAADEF4DEC6D","rest": [1,0,@@ -3394,7 +3394,7 @@},{"name": "TimingLobe1In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3416,7 +3416,7 @@},{"name": "TimingLobe1Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3438,7 +3438,7 @@},{"name": "TimingLobe3In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3460,7 +3460,7 @@},{"name": "TimingLobe3Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3482,7 +3482,7 @@},{"name": "TimingLobe5In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3504,7 +3504,7 @@},{"name": "TimingLobe5Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3526,7 +3526,7 @@},{"name": "TimingLobe7In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3548,7 +3548,7 @@},{"name": "TimingLobe7Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3570,7 +3570,7 @@},{"name": "CamshaftLeft",- "meshSha256": "D249DFB5E8AC3165E0D48A6FC893F856C6B3577369E64257A252640D5888F6D8",+ "meshSha256": "F11241E60ABC63AC1A3C65608AE1418D05AEBC8E08F93FC952E1BAADEF4DEC6D","rest": [1,0,@@ -3592,7 +3592,7 @@},{"name": "TimingLobe2In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3614,7 +3614,7 @@},{"name": "TimingLobe2Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3636,7 +3636,7 @@},{"name": "TimingLobe4In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3658,7 +3658,7 @@},{"name": "TimingLobe4Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3680,7 +3680,7 @@},{"name": "TimingLobe6In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3702,7 +3702,7 @@},{"name": "TimingLobe6Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3724,7 +3724,7 @@},{"name": "TimingLobe8In",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3746,7 +3746,7 @@},{"name": "TimingLobe8Ex",- "meshSha256": "FECCBDF2F88DE6927640EF98B88FF01424D5507F82AD1BEFC816921D46CE9545",+ "meshSha256": "04BCE50ECDC2383F122551186C53743171D13C8D99471E57C57C2825ECE8F974","rest": [1,0,@@ -3769,5 +3769,5 @@],"originalImplementationCommit": "96aa41ca58f4facd46bb7e8afa93f18524dc068d","reproduction": "Run the current demos/Aetheris.EditableV8 with default V8Spec; compare baseline.mesh.json and baseline.motion.json through EngineTests.AssertGeometryReference. Original source and implementation identities describe design provenance; mesh projection was requalified after the analytic edge export correction.",- "meshReferenceRevision": "analytic-edge-bases-and-stable-quad-ties-2026-10-24"+ "meshReferenceRevision": "step-loop-orientation-2026-11-06"}diff --git a/fixtures/Canonical/EditableV8/geometry-reference.meshes.zip b/fixtures/Canonical/EditableV8/geometry-reference.meshes.zipindex 4d6e6e33..fad93b95 100644Binary files a/fixtures/Canonical/EditableV8/geometry-reference.meshes.zip and b/fixtures/Canonical/EditableV8/geometry-reference.meshes.zip differdiff --git a/testdata/step242/manifests/nist.v0.report.json b/testdata/step242/manifests/nist.v0.report.jsonindex e8f88d7e..d0a677f9 100644--- a/testdata/step242/manifests/nist.v0.report.json+++ b/testdata/step242/manifests/nist.v0.report.json@@ -337,6 +337,6 @@"edges": 551,"faces": 256},- "canonicalSha256": "5d0c70b6ffd0e1634492f222d3697dfc1e0b5857aedc8aaeaf7f3c752d8995ac"+ "canonicalSha256": "5d92e8156b1e937b2145c923679e3904e16ec84aeff19f6e5a11a905ab14d583"}]