Documentation ¶
Index ¶
Constants ¶
View Source
const FATAL = true
View Source
const NON_FATAL = false
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaterialLib ¶
func NewMaterialLib ¶
func NewMaterialLib() MaterialLib
func ReadMaterialLibFromBuf ¶
func ReadMaterialLibFromBuf(buf []byte, options *ObjParserOptions) (MaterialLib, error)
func ReadMaterialLibFromReader ¶
func ReadMaterialLibFromReader(rd *bufio.Reader, options *ObjParserOptions) (MaterialLib, error)
type Obj ¶
type Obj struct { Indices []int Coord []float64 // vertex data pos=(x,y,z) tex=(tx,ty) norm=(nx,ny,nz) Mtllib string Groups []*Group BigIndexFound bool // index larger than 65535 TextCoordFound bool // texture coord NormCoordFound bool // normal coord StrideSize int // (px,py,pz),(tu,tv),(nx,ny,nz) = 8 x 4-byte floats = 32 bytes max StrideOffsetPosition int // 0 StrideOffsetTexture int // 3 x 4-byte floats StrideOffsetNormal int // 5 x 4-byte floats }
func NewObjFromBuf ¶
func NewObjFromBuf(objName string, buf []byte, options *ObjParserOptions) (*Obj, error)
func NewObjFromReader ¶
func NewObjFromVertex ¶
func (*Obj) NumberOfElements ¶
type ObjParserOptions ¶
Click to show internal directories.
Click to hide internal directories.