obj

package
v0.0.0-...-bdc3219 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorString

func ColorString(color color.Color) string

func ReadMaterials

func ReadMaterials(in io.Reader) ([]mesh.Material, error)

func ReadMesh

func ReadMesh(in io.Reader) (*mesh.Mesh, []string, error)

func Save

func Save(objPath string, meshToSave mesh.Mesh) error

Save writes the mesh to the path specified in OBJ format, optionally writing an additional MTL file with materials are found within the mesh.

func WriteMaterial

func WriteMaterial(mat mesh.Material, out io.Writer) error

func WriteMaterials

func WriteMaterials(m mesh.Mesh, out io.Writer) error

func WriteMesh

func WriteMesh(m mesh.Mesh, materialFile string, out io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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