must3

package
v0.0.0-...-1c91121 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 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 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 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