Discover Packages
github.com/drummonds/sdf
form3
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: May 6, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Box(size, round)
Capsule(height, radius)
ChamferedCylinder(s, kb, kt)
Cone(height, r0, r1, round)
Cylinder(height, radius, round)
Screw(thread, length, taper, pitch, starts)
Sphere(radius)
Types
Source Files
Directories
Documentation Source Files Directories Index Constants Variables Functions Types Box(size, round) Capsule(height, radius) ChamferedCylinder(s, kb, kt) Cone(height, r0, r1, round) Cylinder(height, radius, round) Screw(thread, length, taper, pitch, starts) Sphere(radius)
Documentation
¶
func Box(size r3.Vec, round float64) (s sdf.SDF3, err error)
func Capsule(height, radius float64) (sdf.SDF3, error)
func ChamferedCylinder(s sdf.SDF3, kb, kt float64) (sdf.SDF3, error)
func Cone(height, r0, r1, round float64) (s sdf.SDF3, err error)
func Cylinder(height, radius, round float64) (s sdf.SDF3, err error)
func Screw(thread sdf.SDF2, length, taper, pitch float64, starts int) (s sdf.SDF3, err error)
func Sphere(radius float64) (s sdf.SDF3, err error)
Box return an SDF3 for a 3d box (rounded corners with round > 0).
Capsule3D return an SDF3 for a capsule.
ChamferedCylinder intersects a chamfered cylinder with an SDF3.
Cone returns the SDF3 for a trucated cone (round > 0 gives rounded edges).
Cylinder return an SDF3 for a cylinder (rounded edges with round > 0).
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)
Sphere return an SDF3 for a sphere.
Source Files
¶
Directories
¶
Show internal
Collapse all
Click to show internal directories.
Click to hide internal directories.