Documentation ¶
Index ¶
- Variables
- func CenterFloat3Attribute(m modeling.Mesh, attr string) modeling.Mesh
- func ColorGradingLut(m modeling.Mesh, lut image.Image, attr string) modeling.Mesh
- func CropFloat3Attribute(m modeling.Mesh, attr string, boundingBox geometry.AABB) modeling.Mesh
- func FilterFloat1(m modeling.Mesh, attribute string, filter func(v float64) bool) modeling.Mesh
- func FilterFloat2(m modeling.Mesh, attribute string, filter func(v vector2.Float64) bool) modeling.Mesh
- func FilterFloat3(m modeling.Mesh, attribute string, filter func(v vector3.Float64) bool) modeling.Mesh
- func FilterFloat4(m modeling.Mesh, attribute string, filter func(v vector4.Float64) bool) modeling.Mesh
- func FlatNormals(m modeling.Mesh) modeling.Mesh
- func FlipTriangleWinding(m modeling.Mesh) modeling.Mesh
- func LaplacianSmooth(m modeling.Mesh, attribute string, iterations int, smoothingFactor float64) modeling.Mesh
- func LaplacianSmoothAlongAxis(m modeling.Mesh, attribute string, iterations int, smoothingFactor float64, ...) modeling.Mesh
- func Nodes() *refutil.TypeFactory
- func NormalizeAttribute2D(m modeling.Mesh, attribute string) modeling.Mesh
- func NormalizeAttribute3D(m modeling.Mesh, attribute string) modeling.Mesh
- func RemoveNullFaces3D(m modeling.Mesh, attribute string, minArea float64) modeling.Mesh
- func RemovedUnreferencedVertices(m modeling.Mesh) modeling.Mesh
- func RequireTopology(m modeling.Mesh, topo modeling.Topology) error
- func RequireV1Attribute(m modeling.Mesh, attr string) error
- func RequireV2Attribute(m modeling.Mesh, attr string) error
- func RequireV3Attribute(m modeling.Mesh, attr string) error
- func RequireV4Attribute(m modeling.Mesh, attr string) error
- func RotateAttribute3D(m modeling.Mesh, attribute string, q quaternion.Quaternion) modeling.Mesh
- func ScaleAttribute2D(m modeling.Mesh, attribute string, origin, amount vector2.Float64) modeling.Mesh
- func ScaleAttribute3D(m modeling.Mesh, attribute string, origin, amount vector3.Float64) modeling.Mesh
- func SliceByPlaneWithAttribute(m modeling.Mesh, plane geometry.Plane, attribute string) (modeling.Mesh, modeling.Mesh)
- func SmoothNormals(m modeling.Mesh) modeling.Mesh
- func SmoothNormalsImplicitWeld(m modeling.Mesh, distance float64) modeling.Mesh
- func SplitOnUniqueMaterials(m modeling.Mesh) []modeling.Mesh
- func TranslateAttribute3D(m modeling.Mesh, attribute string, amount vector3.Float64) modeling.Mesh
- func Unweld(m modeling.Mesh) modeling.Mesh
- func VertexColorSpace(m modeling.Mesh, attribute string, ...) modeling.Mesh
- type CenterAttribute3DTransformer
- type ColorGradingLutTransformer
- type CombineNode
- type CombineNodeData
- type CropAttribute3DNode
- type CropAttribute3DNodeData
- type CropAttribute3DTransformer
- type CustomTransformer
- type FilterFloat1Transformer
- type FilterFloat2Transformer
- type FilterFloat3Transformer
- type FilterFloat4Transformer
- type FlatNormalsTransformer
- type FlipTriangleWindingTransformer
- type LaplacianSmoothNode
- type LaplacianSmoothNodeData
- type LaplacianSmoothTransformer
- type NormalizeAttribute2DTransformer
- type NormalizeAttribute3DTransformer
- type RemoveNullFaces3DTransformer
- type RemovedUnreferencedVerticesTransformer
- type RotateAttribute3DNode
- type RotateAttribute3DNodeData
- type RotateAttribute3DTransformer
- type ScaleAttribute2DTransformer
- type ScaleAttribute3DNode
- type ScaleAttribute3DNodeData
- type ScaleAttribute3DTransformer
- type SliceByPlaneTransformer
- type SliceByPlaneTransformerSide
- type SmoothNormalsImplicitWeldNode
- type SmoothNormalsImplicitWeldNodeData
- type SmoothNormalsImplicitWeldTransformer
- type SmoothNormalsNode
- type SmoothNormalsNodeData
- type SmoothNormalsTransformer
- type TranslateAttribute3DNode
- type TranslateAttribute3DNodeData
- type TranslateAttribute3DTransformer
- type UnweldTransformer
- type VertexColorSpaceTransformation
- type VertexColorSpaceTransformer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRequireTriangleTopology = errors.New("mesh is required to have a triangle topology") ErrRequireLineTopology = errors.New("mesh is required to have a line topology") ErrRequirePointTopology = errors.New("mesh is required to have a point topology") ErrRequireDifferentTopology = errors.New("mesh does not have required topology") )
Functions ¶
func ColorGradingLut ¶ added in v0.11.0
func CropFloat3Attribute ¶ added in v0.10.0
func FilterFloat1 ¶ added in v0.11.0
func FilterFloat2 ¶ added in v0.11.0
func FilterFloat3 ¶ added in v0.11.0
func FilterFloat4 ¶ added in v0.11.0
func LaplacianSmooth ¶
func Nodes ¶ added in v0.11.0
func Nodes() *refutil.TypeFactory
func NormalizeAttribute2D ¶ added in v0.9.0
func NormalizeAttribute3D ¶ added in v0.9.0
func RemoveNullFaces3D ¶ added in v0.10.0
func RequireTopology ¶ added in v0.11.0
func RequireV1Attribute ¶ added in v0.11.0
func RequireV2Attribute ¶ added in v0.11.0
func RequireV3Attribute ¶ added in v0.11.0
func RequireV4Attribute ¶ added in v0.11.0
func RotateAttribute3D ¶
func RotateAttribute3D(m modeling.Mesh, attribute string, q quaternion.Quaternion) modeling.Mesh
func ScaleAttribute2D ¶ added in v0.10.0
func ScaleAttribute3D ¶
func SmoothNormalsImplicitWeld ¶ added in v0.17.0
func TranslateAttribute3D ¶
func Unweld ¶
Unweld duplicates all vertex data such that no two primitive indices share any one vertex
func VertexColorSpace ¶ added in v0.9.0
Types ¶
type CenterAttribute3DTransformer ¶
type CenterAttribute3DTransformer struct {
Attribute string
}
type ColorGradingLutTransformer ¶ added in v0.11.0
type CombineNode ¶ added in v0.12.0
type CombineNode = nodes.StructNode[modeling.Mesh, CombineNodeData]
type CombineNodeData ¶ added in v0.12.0
type CombineNodeData struct { A nodes.NodeOutput[modeling.Mesh] B nodes.NodeOutput[modeling.Mesh] }
type CropAttribute3DNode ¶ added in v0.10.0
type CropAttribute3DNode = nodes.StructNode[modeling.Mesh, CropAttribute3DNodeData]
type CropAttribute3DNodeData ¶ added in v0.11.0
type CropAttribute3DNodeData struct { Attribute nodes.NodeOutput[string] Mesh nodes.NodeOutput[modeling.Mesh] AABB nodes.NodeOutput[geometry.AABB] }
type CropAttribute3DTransformer ¶ added in v0.10.0
type CustomTransformer ¶
type FilterFloat1Transformer ¶ added in v0.11.0
type FilterFloat2Transformer ¶ added in v0.11.0
type FilterFloat3Transformer ¶ added in v0.11.0
type FilterFloat4Transformer ¶ added in v0.11.0
type FlatNormalsTransformer ¶
type FlatNormalsTransformer struct{}
type FlipTriangleWindingTransformer ¶
type FlipTriangleWindingTransformer struct {
Attribute string
}
type LaplacianSmoothNode ¶ added in v0.10.0
type LaplacianSmoothNode = nodes.StructNode[modeling.Mesh, LaplacianSmoothNodeData]
type LaplacianSmoothNodeData ¶ added in v0.11.0
type LaplacianSmoothNodeData struct { Mesh nodes.NodeOutput[modeling.Mesh] Attribute nodes.NodeOutput[string] Iterations nodes.NodeOutput[int] SmoothingFactor nodes.NodeOutput[float64] }
type NormalizeAttribute2DTransformer ¶ added in v0.9.0
type NormalizeAttribute2DTransformer struct {
Attribute string
}
type NormalizeAttribute3DTransformer ¶ added in v0.9.0
type NormalizeAttribute3DTransformer struct {
Attribute string
}
Finds the vector with the longest length and scales all vectors within the mesh attribute by (1 / longestLength)
type RemoveNullFaces3DTransformer ¶ added in v0.10.0
type RemovedUnreferencedVerticesTransformer ¶
type RemovedUnreferencedVerticesTransformer struct{}
type RotateAttribute3DNode ¶ added in v0.15.0
type RotateAttribute3DNode = nodes.StructNode[modeling.Mesh, RotateAttribute3DNodeData]
type RotateAttribute3DNodeData ¶ added in v0.15.0
type RotateAttribute3DNodeData struct { Attribute nodes.NodeOutput[string] Mesh nodes.NodeOutput[modeling.Mesh] Amount nodes.NodeOutput[quaternion.Quaternion] }
type RotateAttribute3DTransformer ¶
type RotateAttribute3DTransformer struct { Attribute string Amount quaternion.Quaternion }
type ScaleAttribute2DTransformer ¶ added in v0.10.0
type ScaleAttribute3DNode ¶ added in v0.11.0
type ScaleAttribute3DNode = nodes.StructNode[modeling.Mesh, ScaleAttribute3DNodeData]
type ScaleAttribute3DNodeData ¶ added in v0.11.0
type ScaleAttribute3DNodeData struct { Attribute nodes.NodeOutput[string] Mesh nodes.NodeOutput[modeling.Mesh] Amount nodes.NodeOutput[vector3.Float64] Origin nodes.NodeOutput[vector3.Float64] }
type ScaleAttribute3DTransformer ¶
type SliceByPlaneTransformer ¶
type SliceByPlaneTransformer struct { Attribute string SliceToKeep SliceByPlaneTransformerSide Plane geometry.Plane }
type SliceByPlaneTransformerSide ¶
type SliceByPlaneTransformerSide int
const ( AbovePlane SliceByPlaneTransformerSide = iota BelowPlane )
type SmoothNormalsImplicitWeldNode ¶ added in v0.17.0
type SmoothNormalsImplicitWeldNode = nodes.StructNode[modeling.Mesh, SmoothNormalsImplicitWeldNodeData]
type SmoothNormalsImplicitWeldNodeData ¶ added in v0.17.0
type SmoothNormalsImplicitWeldNodeData struct { Mesh nodes.NodeOutput[modeling.Mesh] Distance nodes.NodeOutput[float64] }
type SmoothNormalsImplicitWeldTransformer ¶ added in v0.17.0
type SmoothNormalsImplicitWeldTransformer struct {
Distance float64
}
type SmoothNormalsNode ¶ added in v0.10.0
type SmoothNormalsNode = nodes.StructNode[modeling.Mesh, SmoothNormalsNodeData]
type SmoothNormalsNodeData ¶ added in v0.11.0
type SmoothNormalsNodeData struct {
Mesh nodes.NodeOutput[modeling.Mesh]
}
type SmoothNormalsTransformer ¶
type SmoothNormalsTransformer struct{}
type TranslateAttribute3DNode ¶ added in v0.10.0
type TranslateAttribute3DNode = nodes.StructNode[modeling.Mesh, TranslateAttribute3DNodeData]
type TranslateAttribute3DNodeData ¶ added in v0.11.0
type TranslateAttribute3DNodeData struct { Attribute nodes.NodeOutput[string] Mesh nodes.NodeOutput[modeling.Mesh] Amount nodes.NodeOutput[vector3.Float64] }
type UnweldTransformer ¶
type UnweldTransformer struct{}
type VertexColorSpaceTransformation ¶ added in v0.9.0
type VertexColorSpaceTransformation int
const ( VertexColorSpaceSRGBToLinear VertexColorSpaceTransformation = iota VertexColorSpaceLinearToSRGB )
type VertexColorSpaceTransformer ¶ added in v0.9.0
type VertexColorSpaceTransformer struct { Attribute string Transformation VertexColorSpaceTransformation }
Source Files ¶
- attribute_transformer.go
- center_attribute.go
- color_grading_lut.go
- combine.go
- crop_transformer.go
- custom_transformer.go
- filter_attribute.go
- flat_normals.go
- flip_winding.go
- laplacian_smoothing.go
- normalize_attribute_transformer.go
- remove_null_faces_transformer.go
- remove_unreferenced_vertices.go
- rotate_attribute.go
- scale_attribute.go
- slice_by_plane.go
- smooth_normals.go
- split_on_materials.go
- translate_attribute.go
- types.go
- unweld.go
- util.go
- vertex_color_space.go
Click to show internal directories.
Click to hide internal directories.