polymesh

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolyMesh

type PolyMesh struct {
	NodeDef  core.NodeDef `node:"-"`
	NodeName string       `node:"Name"`
	RayBias  float32      `node:",opt"`

	Verts     param.PointArray
	PolyCount []int32 `node:",opt"`
	FaceIdx   []int32 `node:",opt"`

	Shader    []string
	ShaderIdx []int32 `node:",opt"`

	CalcNormals bool `node:",opt"`
	IsVisible   bool `node:",opt"`

	Transform param.MatrixArray `node:",opt"`

	UV    param.Vec2Array `node:",opt"`
	UVIdx []int32         `node:",opt"`

	Normals   param.Vec3Array `node:",opt"`
	NormalIdx []int32         `node:",opt"`
	// contains filtered or unexported fields
}

PolyMesh is the main polygon mesh type in Vermeer.

func (*PolyMesh) Bounds

func (mesh *PolyMesh) Bounds(time float32) m.BoundingBox

Bounds implements core.Geom.

func (*PolyMesh) Def

func (mesh *PolyMesh) Def() core.NodeDef

Def is a core.Node method.

func (*PolyMesh) MotionKeys

func (mesh *PolyMesh) MotionKeys() int

MotionKeys returns the number of motion keys.

func (*PolyMesh) Name

func (mesh *PolyMesh) Name() string

Name is a core.Node method.

func (*PolyMesh) PostRender

func (mesh *PolyMesh) PostRender() error

PostRender is a core.Node method.

func (*PolyMesh) PreRender

func (mesh *PolyMesh) PreRender() error

PreRender is a core.Node method.

func (*PolyMesh) Trace

func (mesh *PolyMesh) Trace(ray *core.Ray, sg *core.ShaderContext) bool

Trace implements core.Primitive.

func (*PolyMesh) TraceElems

func (mesh *PolyMesh) TraceElems(ray *core.Ray, sg *core.ShaderContext, base, count int) bool

TraceElems implements qbvh.Primitive. /go:nosplit

func (*PolyMesh) TraceMotionElems

func (mesh *PolyMesh) TraceMotionElems(time float32, key, key2 int, ray *core.Ray, sg *core.ShaderContext, base, count int) bool

TraceMotionElems implements qbvh.MotionPrimitive.

Jump to

Keyboard shortcuts

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