Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + type FillOptions struct + MaxLoopVertices int + PlanarTolerance float64 + type FillStats struct + FacesAdded int + LoopsFilled int + ObjectsTouched int + VerticesAdded int + func FillModel(m *Model, opts FillOptions) FillStats + type Material interface + PaletteColor func(index int) (color.RGBA, bool) + Texture func(name string) (*image.RGBA, bool) + type Model struct + AllObjects []*Object + Root *Object + func LoadFromReader(r io.ReadSeeker) (*Model, error) + func (m *Model) RenderImage(opts RenderOptions) *image.RGBA + func (m *Model) RenderPNG(opts RenderOptions) ([]byte, error) + func (m *Model) RenderSpinAPNG(opts RenderOptions, frames, delayMs int) ([]byte, error) + func (m *Model) Textures() []string + func (m *Model) TotalPrimitives() int + func (m *Model) TotalVertices() int + type Object struct + Children []*Object + Name string + Primitives []Primitive + SelectionPrim int32 + Vertices []Vertex + XFromParent int32 + YFromParent int32 + ZFromParent int32 + type Primitive struct + ColorIndex int + IsColored bool + Synthetic bool + TextureName string + VertexIndices []int + type RenderOptions struct + Ambient float64 + AzimuthDeg float64 + Background color.Color + Base color.Color + ElevationDeg float64 + FitToFrame bool + Gain float64 + Height int + LightDir [3]float64 + Margin float64 + Material Material + UnitsPerPixel float64 + Width int + func DefaultRenderOptions() RenderOptions + type Vertex struct + X int32 + Y int32 + Z int32