Baltor Get started

Gallery / Mesh algorithms

NURBS surfaces with exact sphere and torus

In your harnessMesh algorithmMIT

Evaluate and tessellate tensor-product NURBS surfaces, including exact spheres and tori built as surfaces of revolution from rational profiles. Use it for CAD-style surfaces and exact round shapes.

Render of NURBS surfaces with exact sphere and torus
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
surface_point, revolve_profile, sphere_surface, torus_surface, wave_surface, tessellate, build, main
Parameters
shape, u_samples, v_samples
Complexity
O(u_samples * v_samples * (degree_u + 1)(degree_v + 1))
Axes
+Y up, metres

Limits. Uniform parameter sampling, not curvature adaptive. The sphere's poles and the closed seam are repeated grid points, so closed results are watertight after welding. Normals come from central differences in parameter space, with mesh normals at the poles.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 227.2 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
Tensor-product rational de Boor evaluation, Surface of revolution from a NURBS profile and the nine-point circle
Tags
nurbs, surface, tensor product, revolution, tessellation, cad
Identity
library.supply.creative_originals.c8af83f35c0043ec6697ce43.5373c132d2afdd15
Version
5373c132d2afdd15e23a3af4d6194569038ce7a6bc919c13fd6fcd6376a9dafb

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.