instance

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	NodeDef  core.NodeDef `node:"-"`
	NodeName string       `node:"Name"`

	Geom string

	BMin param.PointArray
	BMax param.PointArray

	Transform param.MatrixArray
	// contains filtered or unexported fields
}

Instance duplicates an existing geom but with a new transform.

func (*Instance) Bounds

func (ins *Instance) Bounds(time float32) m.BoundingBox

Bounds implements core.Geom.

func (*Instance) Def

func (ins *Instance) Def() core.NodeDef

Def is a core.Node method.

func (*Instance) MotionKeys

func (ins *Instance) MotionKeys() int

MotionKeys returns the number of motion keys.

func (*Instance) Name

func (ins *Instance) Name() string

Name is a core.Node method.

func (*Instance) PostRender

func (ins *Instance) PostRender() error

PostRender is a core.Node method.

func (*Instance) PreRender

func (ins *Instance) PreRender() error

PreRender is a core.Node method.

func (*Instance) Trace

func (ins *Instance) Trace(ray *core.Ray, sg *core.ShaderContext) bool

Trace implements core.Primitive.

type TransformSRTArray

type TransformSRTArray []m.TransformDecomp

func (*TransformSRTArray) TimeKey

func (t *TransformSRTArray) TimeKey(time float32) m.TransformDecomp

Jump to

Keyboard shortcuts

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