Class PreviewMesh

java.lang.Object
dev.despical.mazeengine.core.PreviewMesh

public final class PreviewMesh extends Object
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.