ply

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ply provides a way to decode files in the Polygon File Format (PLY).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	// Float32s maps property name like "x" to a float32.
	Float32s map[string]float32

	// Int32s maps property name like "vertex1" to an int.
	Int32s map[string]int32

	// Uint8s maps property name like "red" to a uint8.
	Uint8s map[string]uint8

	// Uint32Lists maps property name like "vertex_indices" to a uint list.
	Uint32Lists map[string][]uint32
}

Element is an element with property values.

type PLY

type PLY struct {
	// Elements maps element name like "vertex" to the elements as they appear in the file.
	Elements map[string][]*Element
}

PLY has the elements parsed from a file in the Polygon File Format (PLY). More details: http://paulbourke.net/dataformats/ply/

func Decode

func Decode(r io.Reader) (*PLY, error)

Decode decodes the PLY file given as a io.Reader to a PLY struct or an error.

Jump to

Keyboard shortcuts

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