repeat

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(in modeling.Mesh, times int, radius float64) modeling.Mesh

func CirclePoints

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

func FibonacciSphere

func FibonacciSphere(in modeling.Mesh, samples int, radius float64) modeling.Mesh

func FibonacciSpherePoints

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

func Line added in v0.9.0

func Line(m modeling.Mesh, start, end vector3.Float64, inbetween int) modeling.Mesh

func LineExlusive added in v0.9.0

func LineExlusive(m modeling.Mesh, start, end vector3.Float64, inbetween int) modeling.Mesh

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 CircleNodeData added in v0.11.0

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

func (CircleNodeData) Process added in v0.11.0

func (r CircleNodeData) Process() (modeling.Mesh, error)

type CirclePointsNode added in v0.15.0

type CirclePointsNode = nodes.StructNode[[]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 Node added in v0.17.0

type NodeData added in v0.17.0

type NodeData struct {
	Mesh     nodes.NodeOutput[modeling.Mesh]
	Position nodes.NodeOutput[[]vector3.Float64]
	Rotation nodes.NodeOutput[[]quaternion.Quaternion]
	Scale    nodes.NodeOutput[[]vector3.Float64]
}

func (NodeData) Process added in v0.17.0

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

Jump to

Keyboard shortcuts

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