Documentation
¶
Index ¶
- Constants
- func Box(size r3.Vec, round float64) *box
- func Capsule(height, radius float64) *cylinder
- func ChamferedCylinder(s sdf.SDF3, kb, kt float64) sdf.SDF3
- func Cone(height, r0, r1, round float64) *cone
- func Cylinder(height, radius, round float64) *cylinder
- func Screw(thread sdf.SDF2, length float64, taper float64, pitch float64, starts int) sdf.SDF3
- func Sphere(radius float64) *sphere
Constants ¶
View Source
const (
InchesPerMillimetre = 20
)
Variables ¶
This section is empty.
Functions ¶
func Capsule ¶
func Capsule(height, radius float64) *cylinder
Capsule3D return an SDF3 for a capsule.
func ChamferedCylinder ¶
ChamferedCylinder intersects a chamfered cylinder with an SDF3.
func Cone ¶
func Cone(height, r0, r1, round float64) *cone
Cone returns the SDF3 for a trucated cone (round > 0 gives rounded edges).
func Cylinder ¶
func Cylinder(height, radius, round float64) *cylinder
Cylinder return an SDF3 for a cylinder (rounded edges with round > 0).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.