The equations of simgeometry.objects.cone, declared on the code that implements them and checked by the tests.
A frustum with radius start_radius at start and end_radius at end.
- inside
- p∈S⟺∣s∣≤L,ρ≤r1+(r2−r1)2Ls+L
- level set
- ϕ=±min((ρ−min(ρ,rcap), ∣s∣−L), (ρ,s)−q),q=(r2,L)+clip(τ,0,1)(r1−r2,−2L)
- slant
- τ=(r1−r2)2+4L2(ρ−r2)(r1−r2)−2L(s−L)
- Assumes
- radius r1 at s=−L (
start), r2 at s=L (end), one of them may be zero; frame (s,ρ) of AxisymmetricShape - rcap is the radius of the nearer cap; the minus sign where the point is on the inner side of the slant and ∣s∣<L
- ϕ is the exact signed distance
- References
- Built from