obj3

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: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EuroRackPanel

func EuroRackPanel(k obj2.EuroRackParams) (sdf.SDF3, error)

EuroRackPanel returns a 3d eurorack synthesizer module panel (in mm).

func Panel

func Panel(k obj2.PanelParams) (s3 sdf.SDF3, err error)

Panel3D returns a 3d panel with holes on the edges.

func PanelHole

func PanelHole(k *PanelHoleParams) (sdf.SDF3, error)

PanelHole returns a panel hole and an indent for a retention pin.

func Standoff

func Standoff(k StandoffParams) (s sdf.SDF3, err error)

Standoff returns a single board standoff.

Types

type PanelHoleParams

type PanelHoleParams struct {
	Diameter    float64 // hole diameter
	Thickness   float64 // panel thickness
	Indent      r3.Vec  // indent size
	Offset      float64 // indent offset from main axis
	Orientation float64 // orientation of indent, 0 == x-axis
}

PanelHoleParms defines the parameters for a panel hole.

type StandoffParams

type StandoffParams struct {
	PillarHeight   float64
	PillarDiameter float64
	HoleDepth      float64 // > 0 is a hole, < 0 is a support stub
	HoleDiameter   float64
	NumberWebs     int // number of triangular gussets around the standoff base
	WebHeight      float64
	WebDiameter    float64
	WebWidth       float64
}

StandoffParams defines the parameters for a board standoff pillar.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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