Documentation ¶
Index ¶
- Constants
- Variables
- func Load(filepath string) (*modeling.Mesh, error)
- func ReadMesh(in io.Reader) (*modeling.Mesh, error)
- func Save(plyPath string, meshToSave modeling.Mesh) error
- func SaveBinary(plyPath string, meshToSave modeling.Mesh) error
- func WriteASCII(out io.Writer, model modeling.Mesh) error
- func WriteBinary(out io.Writer, model modeling.Mesh) error
- type AsciiReader
- type BinaryReader
- type BodyReader
- type Element
- type Format
- type Header
- type ListProperty
- type Property
- type ScalarProperty
- type ScalarPropertyType
Constants ¶
View Source
const VertexElementName = "vertex"
Variables ¶
Functions ¶
Types ¶
type AsciiReader ¶
type AsciiReader struct {
// contains filtered or unexported fields
}
type BinaryReader ¶ added in v0.2.0
type BinaryReader struct {
// contains filtered or unexported fields
}
type BodyReader ¶ added in v0.10.0
type Element ¶
type Header ¶ added in v0.10.0
type Header struct { Format Format `json:"format"` Elements []Element `json:"elements"` TextureFile *string `json:"texture,omitempty"` }
func BuildHeaderFromModel ¶ added in v0.12.0
func (Header) BuildReader ¶ added in v0.10.0
func (h Header) BuildReader(in io.Reader) BodyReader
type ListProperty ¶
type ListProperty struct {
// contains filtered or unexported fields
}
func (ListProperty) Name ¶
func (lp ListProperty) Name() string
type ScalarProperty ¶
type ScalarProperty struct { PropertyName string `json:"name"` Type ScalarPropertyType `json:"type"` }
func (ScalarProperty) Name ¶
func (sp ScalarProperty) Name() string
func (ScalarProperty) Size ¶ added in v0.2.0
func (sp ScalarProperty) Size() int
type ScalarPropertyType ¶
type ScalarPropertyType string
const ( Char ScalarPropertyType = "char" UChar ScalarPropertyType = "uchar" // uint8 Short ScalarPropertyType = "short" UShort ScalarPropertyType = "ushort" Int ScalarPropertyType = "int" UInt ScalarPropertyType = "uint" Float ScalarPropertyType = "float" Double ScalarPropertyType = "double" )
Click to show internal directories.
Click to hide internal directories.