Class PreviewMesh
java.lang.Object
dev.despical.mazeengine.core.PreviewMesh
Builds a bounded box mesh representing the complete planned maze footprint.
The mesh merges identical wall runs across neighboring rows while retaining every passage opening. Separate boxes mark the floor, entrance, exit, and optional roof, allowing previews to show the full structure with fewer display entities than one entity per block.
Mesh construction uses the same passage interpretation as BlockPlan and checks interruption during row traversal. If the display limit would be exceeded, it rejects the preview rather than returning a truncated maze. The result contains local geometry and performs no world mutations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordStores one local rectangular region in the preview mesh.static enumIdentifies the structural role of one preview mesh box. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<PreviewMesh.Box> create(MazeLayout layout, Preset preset, int limit)
-
Method Details
-
create
-