extrude

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CircleWithConstantThickness

func CircleWithConstantThickness(sides int, thickness float64, path []vector3.Float64) modeling.Mesh

func CircleWithThickness

func CircleWithThickness(sides int, thickness []float64, path []vector3.Float64) modeling.Mesh

func ClosedCircleWithConstantThickness

func ClosedCircleWithConstantThickness(sides int, thickness float64, path []vector3.Float64) modeling.Mesh

func ClosedCircleWithThickness

func ClosedCircleWithThickness(sides int, thickness []float64, path []vector3.Float64) modeling.Mesh

func ClosedShape

func ClosedShape(shape []vector2.Float64, path []vector3.Float64) modeling.Mesh

func GetPlaneOuterPoints

func GetPlaneOuterPoints(center, normal, perpendicular vector3.Float64, radius float64, sides int) ([]vector3.Float64, []vector3.Float64)

func Line

func Line(linePoints []LinePoint) modeling.Mesh

func Polygon

func Polygon(sides int, points []ExtrusionPoint) modeling.Mesh

func ProjectFace

func ProjectFace(center, normal, perpendicular vector3.Float64, shape []vector2.Float64) ([]vector3.Float64, []vector3.Float64)

TODO

		Pretty sure normal calculation is wrong. Need to determine what is and
     isn't a convex / concave point

func Shape

func Shape(shape []vector2.Float64, path []vector3.Float64) modeling.Mesh

Types

type ExtrusionPoint

type ExtrusionPoint struct {
	Point       vector3.Float64
	Thickness   float64
	UvPoint     vector2.Float64
	UvThickness float64
}

type LinePoint

type LinePoint struct {
	Point   vector3.Float64
	Up      vector3.Float64
	Width   float64
	Height  float64
	Uv      vector2.Float64
	UvWidth float64
}

Jump to

Keyboard shortcuts

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