The equations of simgeometry.objects.cylinder, declared on the code that implements them and checked by the tests.
A solid circular cylinder with its axis from start to end.
- inside
- p∈S⟺∣s∣≤L,ρ2≤R2(f=0),p∈S⟺ϕ(p)≤0(f>0)
- level set
- ϕ=ϕrect(ρ,s; R−f,L−f)−f,ϕrect(x,y;hx,hy)=max(d,0)+min(max(dx,dy),0),d=(∣x∣−hx,∣y∣−hy)
- Assumes
- half length L, radius R, in the frame (s,ρ) of
AxisymmetricShape - the fillet f≤min(R,L) rounds the two circular edges
- ϕ is the exact signed distance, negative inside
- Built from