ply

package
v0.0.0-...-198d64f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Buffer   []byte
	Pos      int
	Last     map[string]string
	Elements []PlyElement
}

func NewParserFromFile

func NewParserFromFile(fname string) (*Parser, error)

func NewParserFromString

func NewParserFromString(str string) (*Parser, error)

func (*Parser) ParseBody

func (self *Parser) ParseBody() *PlyObject

func (*Parser) ParseHeader

func (self *Parser) ParseHeader() bool

func (*Parser) ParseNumber

func (self *Parser) ParseNumber() bool

type PlyElement

type PlyElement struct {
	Name       string
	Count      int
	Properties []PlyProperty
	Tuples     [][]float64
}

func (*PlyElement) PackF32

func (self *PlyElement) PackF32(names ...string) []float32

func (*PlyElement) PackIndexesB

func (self *PlyElement) PackIndexesB() []byte

type PlyObject

type PlyObject struct {
	Elements map[string]PlyElement
}

func NewObjectFromFile

func NewObjectFromFile(fname string) (*PlyObject, error)

func (*PlyObject) PackF32

func (self *PlyObject) PackF32(names ...string) []float32

func (*PlyObject) PackIndexesB

func (self *PlyObject) PackIndexesB() []byte

type PlyProperty

type PlyProperty struct {
	Type string
	Name string

	ListCountType string
	ListItemType  string
}

Jump to

Keyboard shortcuts

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