repeat

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(times int, radius, revolutions 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 FibonacciSpiral added in v0.22.1

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

func Mesh added in v0.18.0

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

func Polygon added in v0.26.0

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

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

func TRS added in v0.22.1

func TRS(input, transforms []trs.TRS) []trs.TRS

Types

type CircleNode added in v0.10.0

type CircleNode struct {
	Radius      nodes.Output[float64]
	Revolutions nodes.Output[float64]
	Times       nodes.Output[int]
}

func (CircleNode) Out added in v0.10.0

func (r CircleNode) Out(out *nodes.StructOutput[[]trs.TRS])

type FibonacciSphereNode added in v0.22.1

type FibonacciSphereNode struct {
	Count  nodes.Output[int]
	Radius nodes.Output[float64]
}

func (FibonacciSphereNode) Out added in v0.32.1

func (fpnd FibonacciSphereNode) Out(out *nodes.StructOutput[[]trs.TRS])

type FibonacciSpiralNode added in v0.22.1

type FibonacciSpiralNode struct {
	Count  nodes.Output[int]
	Radius nodes.Output[float64]
}

func (FibonacciSpiralNode) Out added in v0.32.1

func (fpnd FibonacciSpiralNode) Out(out *nodes.StructOutput[[]trs.TRS])

type Grid added in v0.27.1

type Grid struct {
	Rows    int
	Columns int
	Width   float64
	Height  float64
}

func (Grid) TRS added in v0.27.1

func (g Grid) TRS() []trs.TRS

func (Grid) Vector2 added in v0.27.1

func (g Grid) Vector2() []vector2.Float64

func (Grid) Vector3 added in v0.27.1

func (g Grid) Vector3() []vector3.Float64

type GridNode added in v0.27.1

type GridNode struct {
	Rows    nodes.Output[int]
	Columns nodes.Output[int]
	Width   nodes.Output[float64]
	Height  nodes.Output[float64]
}

func (GridNode) TRS added in v0.27.1

func (g GridNode) TRS(out *nodes.StructOutput[[]trs.TRS])

func (GridNode) Vector2 added in v0.27.1

func (g GridNode) Vector2(out *nodes.StructOutput[[]vector2.Float64])

func (GridNode) Vector3 added in v0.27.1

func (g GridNode) Vector3(out *nodes.StructOutput[[]vector3.Float64])

type Line added in v0.9.0

type Line struct {
	// Start of the line
	Start vector3.Float64

	// End of the line
	End vector3.Float64

	// How many TRS matrices to produce
	Samples int

	// If true, the start and end points are not included in the resulting
	// array of TRS values
	Exclusive bool
}

func (Line) TRS added in v0.22.2

func (l Line) TRS() []trs.TRS

type LineNode added in v0.18.0

type LineNode struct {
	Start     nodes.Output[vector3.Float64]
	End       nodes.Output[vector3.Float64]
	Samples   nodes.Output[int]  `description:"How many TRS matrices to produce"`
	Exclusive nodes.Output[bool] `description:"If true, the start and end points are not included in the resulting array of TRS values"`
}

func (LineNode) Out added in v0.32.1

func (r LineNode) Out(out *nodes.StructOutput[[]trs.TRS])

type MeshNode added in v0.18.0

type MeshNode struct {
	Mesh       nodes.Output[modeling.Mesh]
	Transforms nodes.Output[[]trs.TRS]
}

func (MeshNode) Description added in v0.32.1

func (rnd MeshNode) Description() string

func (MeshNode) Out added in v0.32.1

func (rnd MeshNode) Out(out *nodes.StructOutput[modeling.Mesh])

type MeshSurface added in v0.27.0

type MeshSurface struct {
	Mesh      modeling.Mesh
	Attribute string
	Samples   int
	Up        vector3.Float64
}

func (MeshSurface) TRS added in v0.27.0

func (ms MeshSurface) TRS() []trs.TRS

type SampleMeshSurfaceNode added in v0.27.1

type SampleMeshSurfaceNode struct {
	Mesh      nodes.Output[modeling.Mesh]
	Attribute nodes.Output[string]
	Samples   nodes.Output[int]
	Up        nodes.Output[vector3.Float64]
}

func (SampleMeshSurfaceNode) Out added in v0.27.1

func (rnd SampleMeshSurfaceNode) Out(out *nodes.StructOutput[[]trs.TRS])

type SplineNode added in v0.18.0

type SplineNode struct {
	Curve nodes.Output[curves.Spline]
	Times nodes.Output[int]
}

func (SplineNode) Description added in v0.32.1

func (rnd SplineNode) Description() string

func (SplineNode) Out added in v0.32.1

func (r SplineNode) Out(out *nodes.StructOutput[[]trs.TRS])

type TRSNode added in v0.22.1

type TRSNode struct {
	Input      nodes.Output[[]trs.TRS]
	Transforms nodes.Output[[]trs.TRS]
}

func (TRSNode) Description added in v0.32.1

func (rnd TRSNode) Description() string

func (TRSNode) Out added in v0.32.1

func (rnd TRSNode) Out(out *nodes.StructOutput[[]trs.TRS])

type Transformation added in v0.22.2

type Transformation struct {
	Initial        trs.TRS
	Transformation trs.TRS
	Samples        int
}

func (Transformation) TRS added in v0.22.2

func (t Transformation) TRS() []trs.TRS

type TransformationNode added in v0.22.2

type TransformationNode struct {
	Initial        nodes.Output[trs.TRS]
	Transformation nodes.Output[trs.TRS]
	Samples        nodes.Output[int]
}

func (TransformationNode) Out added in v0.32.1

func (rnd TransformationNode) Out(out *nodes.StructOutput[[]trs.TRS])

Jump to

Keyboard shortcuts

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