Baltor Get started

Gallery / Mesh algorithms

Rounded box with filleted edges

In your harnessMesh algorithmMIT

Build a box whose edges and corners are rounded to one radius as a single welded quad mesh, with the exact smooth volume available. Use it for furniture, devices, buttons and soft props.

Render of Rounded box with filleted edges
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
rounded_box_volume, rounded_box, main
Parameters
size_x, size_y, size_z, radius, bevel_segments, flat_segments
Complexity
O(face lattice size)
Axes
+Y up, metres

Limits. One radius for every edge; no per-edge radii or chamfers. No texture coordinates. The rounded bands use a lattice pulled onto the surface, so their quads are not exactly even.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 229.0 KB
Licence
MIT
Declared effects
reads files, runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility, OpenGL 3 driver, Mesa llvmpipe under Xvfb
Checks
generator runs system python, generator runs verifier python, gltf strict structure, interpreters agree, example matches generator, godot headless gltf load, godot compatibility render
Techniques
Minkowski sum of a box and a sphere (nearest inner-box point plus radius), Non-uniform lattice with quarter-circle spacing
Tags
primitive, rounded box, fillet, bevel, quad mesh, props
Identity
library.supply.creative_originals.3c5ea8d225fd6788c286a93f.15188758be51d47d
Version
15188758be51d47db80f793eb435afb64867d934aa99331af2d82b44e2a68254

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.