must3

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InchesPerMillimetre = 20
)

Variables

This section is empty.

Functions

func Box

func Box(size r3.Vec, round float64) *box

Box return an SDF3 for a 3d box (rounded corners with round > 0).

func Capsule

func Capsule(height, radius float64) *cylinder

Capsule3D return an SDF3 for a capsule.

func ChamferedCylinder

func ChamferedCylinder(s sdf.SDF3, kb, kt float64) sdf.SDF3

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).

func Screw

func Screw(thread sdf.SDF2, length float64, taper float64, pitch float64, starts int) sdf.SDF3

Screw returns a screw SDF3. - length of screw - thread taper angle (radians) - pitch thread to thread distance - number of thread starts (< 0 for left hand threads)

func Sphere

func Sphere(radius float64) *sphere

Sphere return an SDF3 for a sphere.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL