extrude

package
v0.0.0-...-bdc3219 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 4 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 []vector.Vector3) mesh.Mesh

func CircleWithThickness

func CircleWithThickness(sides int, thickness []float64, path []vector.Vector3) mesh.Mesh

func ClosedCircleWithConstantThickness

func ClosedCircleWithConstantThickness(sides int, thickness float64, path []vector.Vector3) mesh.Mesh

func ClosedCircleWithThickness

func ClosedCircleWithThickness(sides int, thickness []float64, path []vector.Vector3) mesh.Mesh

func ClosedShape

func ClosedShape(shape []vector.Vector2, path []vector.Vector3) mesh.Mesh

func GetPlaneOuterPoints

func GetPlaneOuterPoints(center, normal, perpendicular vector.Vector3, radius float64, sides int) ([]vector.Vector3, []vector.Vector3)

func Line

func Line(linePoints []LinePoint) mesh.Mesh

func Polygon

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

func ProjectFace

func ProjectFace(center, normal, perpendicular vector.Vector3, shape []vector.Vector2) ([]vector.Vector3, []vector.Vector3)

TODO

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

func Shape

func Shape(shape []vector.Vector2, path []vector.Vector3) mesh.Mesh

Types

type ExtrusionPoint

type ExtrusionPoint struct {
	Point       vector.Vector3
	Thickness   float64
	UvPoint     vector.Vector2
	UvThickness float64
}

type LinePoint

type LinePoint struct {
	Point   vector.Vector3
	Up      vector.Vector3
	Width   float64
	Height  float64
	Uv      vector.Vector2
	UvWidth float64
}

Jump to

Keyboard shortcuts

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