gausops

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 16 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 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 FilterNode = nodes.Struct[modeling.Mesh, FilterNodeData]

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 LoaderNode = nodes.Struct[modeling.Mesh, LoaderNodeData]

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.Struct[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 ScaleNode

type ScaleNode = nodes.Struct[modeling.Mesh, ScaleNodeData]

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.Struct[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)

type SpzLoaderNode added in v0.17.0

type SpzLoaderNode = nodes.Struct[modeling.Mesh, SpzLoaderNodeData]

type SpzLoaderNodeData added in v0.17.0

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

func (SpzLoaderNodeData) Process added in v0.17.0

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

Jump to

Keyboard shortcuts

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