Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Merge branch 'master' of https://github.com/yuechen-li-dev/Aetheris
Yuechen Lib97d0d3b86bf
diff --cc Aetheris.Kernel.Firmament/FirmamentBuildAndExport.csindex 507fb4e5,9b32e7ce..29233f51--- a/Aetheris.Kernel.Firmament/FirmamentBuildAndExport.cs+++ b/Aetheris.Kernel.Firmament/FirmamentBuildAndExport.cs@@@ -57,18 -57,16 +57,28 @@@ public static class FirmamentBuildAndExreturn KernelResult<FirmamentStepExportResult>.Failure(dfm.Diagnostics);}+ if (TryExportV2HollowBody(v2Parse.Document) is { } hollowExport)+ {+ return hollowExport;+ }++ if (TryExportV2RoundedBoxBody(v2Parse.Document) is { } roundedBoxExport)+ {+ return roundedBoxExport;+ }++ // Do not let the existing semantic-hole route silently export the unmodified host.+ // M9 has an explicit AIR/graph contract, but the authoritative single-body merge+ // (retained box-with-void plus analytic struts/nodes/bonds) is not yet materialized.+ if (v2Parse.Document.LatticeFills is { Count: > 0 })+ {+ return KernelResult<FirmamentStepExportResult>.Failure([new Kernel.Core.Diagnostics.KernelDiagnostic(+ Kernel.Core.Diagnostics.KernelDiagnosticCode.NotImplemented,+ Kernel.Core.Diagnostics.KernelDiagnosticSeverity.Error,+ "lattice-fill-brep-plan-not-materialized: M9 parsed and DFM-validated the explicit FillRegion, but the current BRep backend cannot emit the required single authoritative body combining an internal box cavity, a preserved through-hole, and bonded analytic lattice members. No STEP artifact was emitted.",+ "FirmamentV2.LatticeFill")]);+ }+if (TryExportV2AirChamferBody(v2Parse.Document) is { } airChamferExport){return airChamferExport;diff --cc Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2Parser.csindex 81843360,4f3451e0..5c2757f9--- a/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2Parser.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2Parser.cs@@@ -39,14 -39,12 +39,20 @@@ public static class FirmamentV2Parsepublic const string DfmConceptUnitMismatch = "firmament-v2-dfm-concept-unit-mismatch";public const string DfmMinimumToolRadiusViolation = "firmament-v2-dfm-minimum-tool-radius-violation";public const string Phase3EdgeFinishSyntaxInvalid = "firmament-v2-phase3-edge-finish-syntax-invalid";+ public const string FillRegionInvalid = "firmament-v2-fill-region-invalid";+ public const string FillUnknownRegion = "firmament-v2-fill-unknown-region";+ public const string FillUnknownHost = "firmament-v2-fill-unknown-host";+ public const string FillUnsupportedPattern = "firmament-v2-fill-unsupported-pattern";+ public const string FillInvalidCellSize = "firmament-v2-fill-invalid-cell-size";+ public const string FillInvalidStrutRadius = "firmament-v2-fill-invalid-strut-radius";+ public const string FillUnsupportedBoundaryPolicy = "firmament-v2-fill-unsupported-boundary-policy";+ public const string FillMultipleUnsupported = "firmament-v2-fill-multiple-unsupported";+ public const string UnknownConstructionPolicy = "firmament-v2-unknown-construction-policy";+ public const string PrimitiveDoesNotSatisfyHollowConstructible = "firmament-v2-primitive-does-not-satisfy-hollow-constructible";+ public const string WallThicknessRequired = "firmament-v2-wall-thickness-required";+ public const string WallThicknessMustBePositive = "firmament-v2-wall-thickness-must-be-positive";+ public const string UnsupportedOpening = "firmament-v2-unsupported-opening";+ public const string MultipleOpeningsNotSupported = "firmament-v2-multiple-openings-not-supported";public const string ConceptUnknownFamily = "firmament-v2-concept-unknown-family";public const string ConceptUnknownConcept = "firmament-v2-concept-unknown-concept";