โ† All examples

mesh algorithms

Rounded box with filleted edges

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.

Recorded render of Rounded box with filleted edges

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • example.gltf
  • meshkit.py
  • preview.png
  • rounded_box.py
  • test_package.py
  • verification/native.json

How it works

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

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • generator_runs_system_python
  • generator_runs_verifier_python
  • gltf_strict_structure
  • interpreters_agree
  • example_matches_generator
  • godot_headless_gltf_load
  • godot_compatibility_render

Limits to consider

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.