repeat

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(times int, radius float64) []trs.TRS

func CirclePoints

func CirclePoints(count int, radius float64) []vector3.Float64

func FibonacciSphere

func FibonacciSphere(samples int, radius float64) []trs.TRS

func FibonacciSpherePoints

func FibonacciSpherePoints(samples int, offsetRadius float64) []vector3.Float64

func Line added in v0.9.0

func Line(start, end vector3.Float64, inbetween int) []trs.TRS

func LineExlusive added in v0.9.0

func LineExlusive(start, end vector3.Float64, inbetween int) []trs.TRS

Like line, but we don't include transforms on the start and end points. Only the inbetween points

func Mesh added in v0.18.0

func Mesh(mesh modeling.Mesh, transforms []trs.TRS) modeling.Mesh

func Nodes added in v0.20.0

func Nodes() *refutil.TypeFactory

func Spline added in v0.18.0

func Spline(curve curves.Spline, inbetween int) []trs.TRS

func SplineExlusive added in v0.18.0

func SplineExlusive(curve curves.Spline, inbetween int) []trs.TRS

Like line, but we don't include meshes on the start and end points. Only the inbetween points

Types

type CircleNode added in v0.10.0

type CircleNode = nodes.Struct[[]trs.TRS, CircleNodeData]

type CircleNodeData added in v0.11.0

type CircleNodeData struct {
	Radius nodes.NodeOutput[float64]
	Times  nodes.NodeOutput[int]
}

func (CircleNodeData) Process added in v0.11.0

func (r CircleNodeData) Process() ([]trs.TRS, error)

type CirclePointsNode added in v0.15.0

type CirclePointsNode = nodes.Struct[[]vector3.Float64, CirclePointsNodeData]

type CirclePointsNodeData added in v0.15.0

type CirclePointsNodeData struct {
	Count  nodes.NodeOutput[int]
	Radius nodes.NodeOutput[float64]
}

func (CirclePointsNodeData) Process added in v0.15.0

func (cpnd CirclePointsNodeData) Process() ([]vector3.Float64, error)

type LineNode added in v0.18.0

type LineNode = nodes.Struct[[]trs.TRS, LineNodeData]

type LineNodeData added in v0.18.0

type LineNodeData struct {
	Start nodes.NodeOutput[vector3.Float64]
	End   nodes.NodeOutput[vector3.Float64]
	Times nodes.NodeOutput[int]
}

func (LineNodeData) Process added in v0.18.0

func (r LineNodeData) Process() ([]trs.TRS, error)

type MeshNode added in v0.18.0

type MeshNode = nodes.Struct[modeling.Mesh, MeshNodeData]

type MeshNodeData added in v0.18.0

type MeshNodeData struct {
	Mesh       nodes.NodeOutput[modeling.Mesh]
	Transforms nodes.NodeOutput[[]trs.TRS]
}

func (MeshNodeData) Process added in v0.18.0

func (rnd MeshNodeData) Process() (modeling.Mesh, error)

type SplineNode added in v0.18.0

type SplineNode = nodes.Struct[[]trs.TRS, SplineNodeData]

type SplineNodeData added in v0.18.0

type SplineNodeData struct {
	Curve nodes.NodeOutput[curves.Spline]
	Times nodes.NodeOutput[int]
}

func (SplineNodeData) Process added in v0.18.0

func (r SplineNodeData) Process() ([]trs.TRS, error)

Jump to

Keyboard shortcuts

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