obj

package
v0.0.0-...-6765b72 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMtl

func ParseMtl(data string) map[string]*mat.Mtl

Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.000000 0.429367 0.640000 Ks 0.500000 0.500000 0.500000 Ni 1.000000 d 1.000000 illum 2

Types

type Obj

type Obj struct {
	Verticies    []mat.Tuple4
	Normals      []mat.Tuple4
	Groups       map[string]*mat.Group
	IgnoredLines int
}

func ParseObj

func ParseObj(data string) *Obj

func (*Obj) DefaultGroup

func (o *Obj) DefaultGroup() *mat.Group

func (*Obj) ToGroup

func (o *Obj) ToGroup() *mat.Group

Jump to

Keyboard shortcuts

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