Skip to content

Mesh to cube converter - #977

Open
ewanhowell5195 wants to merge 1 commit into
JannisX11:masterfrom
ewanhowell5195:master
Open

Mesh to cube converter#977
ewanhowell5195 wants to merge 1 commit into
JannisX11:masterfrom
ewanhowell5195:master

Conversation

@ewanhowell5195

Copy link
Copy Markdown
Contributor

This plugin detects cuboids within meshes and converts them into real Blockbench cubes, including rotated cuboids and meshes made up of multiple merged cubes.

UVs are transferred exactly. A detected cuboid is only converted when every face maps cleanly onto a cube face, meaning no distorted UVs and no rotations other than 90 degree steps.

Usage

Select the meshes you want to convert, or select nothing to convert every mesh in the project.

Use Tools > Convert Mesh to Cubes to run the conversion.

Valid cuboids are extracted into cubes, and any remaining geometry stays behind as a mesh. Meshes that convert completely are removed.

Detection rules

Complete 6 sided cuboids always convert, even when merged into other geometry.

Partial cuboids with missing faces (such as a hidden face deleted where a slope was merged on) convert when at least 4 faces remain. Missing faces become disabled faces on the cube.

Isolated geometry that is not attached to anything else converts with any number of faces, so a lone flat plane becomes a zero thickness cube.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant