Skip to content
Projects

Solids of revolution

The equations of simgeometry.objects.axisymmetric, declared on the code that implements them and checked by the tests.

AxisymmetricShape

classsource

A solid of revolution about an axis through midpoint along axis.

frame
s=(p−c)⋅a,ρ=∣p−c−s a∣s = (p - c)\cdot a, \qquad \rho = |p - c - s\,a|
level set
ϕ(p)=ϕprofile(s,ρ)\phi(p) = \phi_\mathrm{profile}(s, \rho)
Assumes
  • unit axis aa through the centre cc; the profile lives in the half-plane (s,ρ≥0)(s, \rho \ge 0)
  • the exact signed distance of the profile there is the exact 3D distance of the solid
  • a frame along a coordinate axis takes a cheaper path with the same values