gausops

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 14 Imported by: 0

README

gausops

Operations pertaining to modifying gaussian splat data.

Operations

Color Grading LUT
Scale

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorGradingLut

func ColorGradingLut(m modeling.Mesh, lut image.Image, attr string) modeling.Mesh

func Nodes

func Nodes() *refutil.TypeFactory

func RotateAttribute added in v0.15.0

func RotateAttribute(m modeling.Mesh, attribute string, amount quaternion.Quaternion) modeling.Mesh

func Scale

func Scale(m modeling.Mesh, scaleAttr string, amount vector3.Float64) modeling.Mesh

Types

type ColorGradingLutNodeData

type ColorGradingLutNodeData struct {
	Mesh      nodes.NodeOutput[modeling.Mesh]
	Attribute nodes.NodeOutput[string]
	LUT       nodes.NodeOutput[image.Image]
}

func (ColorGradingLutNodeData) Process

func (ca3dn ColorGradingLutNodeData) Process() (modeling.Mesh, error)

type ColorGradingLutTransformer

type ColorGradingLutTransformer struct {
	Attribute string
	LUT       image.Image
}

func (ColorGradingLutTransformer) Transform

func (cglt ColorGradingLutTransformer) Transform(m modeling.Mesh) (results modeling.Mesh, err error)

type FilterNode added in v0.15.0

type FilterNodeData added in v0.15.0

type FilterNodeData struct {
	Splat nodes.NodeOutput[modeling.Mesh]

	MinOpacity nodes.NodeOutput[float64]
	MaxOpacity nodes.NodeOutput[float64]
	MinVolume  nodes.NodeOutput[float64]
	MaxVolume  nodes.NodeOutput[float64]
}

func (FilterNodeData) Process added in v0.15.0

func (fnd FilterNodeData) Process() (modeling.Mesh, error)

type LoaderNode added in v0.15.0

type LoaderNodeData added in v0.15.0

type LoaderNodeData struct {
	Data nodes.NodeOutput[[]byte]
}

func (LoaderNodeData) Process added in v0.15.0

func (pn LoaderNodeData) Process() (modeling.Mesh, error)

type RotateAttributeNode added in v0.15.0

type RotateAttributeNode = nodes.StructNode[modeling.Mesh, RotateAttributeNodeData]

type RotateAttributeNodeData added in v0.15.0

type RotateAttributeNodeData struct {
	Mesh      nodes.NodeOutput[modeling.Mesh]
	Attribute nodes.NodeOutput[string]
	Amount    nodes.NodeOutput[quaternion.Quaternion]
}

func (RotateAttributeNodeData) Process added in v0.15.0

func (rand RotateAttributeNodeData) Process() (modeling.Mesh, error)

type ScaleNodeData

type ScaleNodeData struct {
	Mesh      nodes.NodeOutput[modeling.Mesh]
	Attribute nodes.NodeOutput[string]
	Amount    nodes.NodeOutput[vector3.Float64]
}

func (ScaleNodeData) Process

func (sa3dn ScaleNodeData) Process() (modeling.Mesh, error)

type ScaleTransformer

type ScaleTransformer struct {
	Attribute string
	Scale     vector3.Float64
}

func (ScaleTransformer) Transform

func (st ScaleTransformer) Transform(m modeling.Mesh) (results modeling.Mesh, err error)

type ScaleWithinRegionNode added in v0.15.0

type ScaleWithinRegionNode = nodes.StructNode[modeling.Mesh, ScaleWithinRegionNodeData]

type ScaleWithinRegionNodeData added in v0.15.0

type ScaleWithinRegionNodeData struct {
	Mesh     nodes.NodeOutput[modeling.Mesh]
	Scale    nodes.NodeOutput[float64]
	Radius   nodes.NodeOutput[float64]
	Position nodes.NodeOutput[vector3.Float64]
}

func (ScaleWithinRegionNodeData) Process added in v0.15.0

func (swrnd ScaleWithinRegionNodeData) Process() (modeling.Mesh, error)

Jump to

Keyboard shortcuts

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