Baltor Get started

Gallery / Mesh algorithms

Superellipsoid superquadric

In your harnessMesh algorithmMIT

Generate Barr superquadric solids whose two exponents morph between boxes, cylinders, ellipsoids, diamonds and pinched stars, with the exact smooth volume available. Use it for rounded props and shape fitting.

Render of Superellipsoid superquadric
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
superellipsoid_point, superellipsoid, superellipsoid_volume, main
Parameters
size_x, size_y, size_z, north_south, east_west, segments, rings
Complexity
O(segments * rings)
Axes
+Y up, metres

Limits. Even angle sampling crowds vertices near sharp edges and leaves flat sides coarse for small exponents; exponents near 0 produce nearly degenerate thin faces. No texture coordinates. Normals are mesh normals, not the analytic surface normals.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 227.5 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
Barr superquadric with signed powers of cosine and sine, Superellipsoid volume via beta functions
Tags
primitive, superquadric, superellipsoid, rounded box, parametric surface, morph
Identity
library.supply.creative_originals.80e3970c15514cabe6cc5376.0244e610501298f2
Version
0244e610501298f2cdef04c54b783f15842e1e2bf7c0546918b58b07d11549c5

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.