form3

package
v0.0.0-...-6596a10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(size r3.Vec, round float64) (s sdf.SDF3, err error)

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

func Capsule

func Capsule(height, radius float64) (sdf.SDF3, error)

Capsule3D return an SDF3 for a capsule.

func ChamferedCylinder

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

ChamferedCylinder intersects a chamfered cylinder with an SDF3.

func Cone

func Cone(height, r0, r1, round float64) (s sdf.SDF3, err error)

Cone returns the SDF3 for a trucated cone (round > 0 gives rounded edges).

func Cylinder

func Cylinder(height, radius, round float64) (s sdf.SDF3, err error)

Cylinder return an SDF3 for a cylinder (rounded edges with round > 0).

func Sphere

func Sphere(radius float64) (s sdf.SDF3, err error)

Sphere return an SDF3 for a sphere.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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