Documentation ¶
Index ¶
- Variables
- type AnnealCallback
- type Annealable
- type Axis
- type Item
- type Model
- func (m *Model) Add(mesh *fauxgl.Mesh, detail, count int, rotAllowed bool)
- func (m *Model) BoundingBox() fauxgl.Box
- func (m *Model) Copy() Annealable
- func (m *Model) DoMove() Undo
- func (m *Model) Energy() float64
- func (m *Model) Mesh() *fauxgl.Mesh
- func (m *Model) Meshes() []*fauxgl.Mesh
- func (m *Model) Pack(iterations int, callback AnnealCallback) *Model
- func (m *Model) Reset()
- func (m *Model) Transformations() []fauxgl.Matrix
- func (m *Model) TreeMesh() *fauxgl.Mesh
- func (m *Model) TreeMeshes() []*fauxgl.Mesh
- func (m *Model) UndoMove(undo Undo)
- func (m *Model) ValidChange(i int) bool
- func (m *Model) Volume() float64
- type Node
- type Tree
- type Undo
Constants ¶
This section is empty.
Variables ¶
View Source
var Rotations []fauxgl.Matrix
Functions ¶
This section is empty.
Types ¶
type AnnealCallback ¶
type AnnealCallback func(Annealable)
type Annealable ¶
type Annealable interface { Energy() float64 DoMove() Undo UndoMove(Undo) Copy() Annealable }
func Anneal ¶
func Anneal(state Annealable, maxTemp, minTemp float64, steps int, callback AnnealCallback) Annealable
type Item ¶
type Model ¶
func (*Model) BoundingBox ¶
func (*Model) Copy ¶
func (m *Model) Copy() Annealable
func (*Model) Transformations ¶
func (*Model) TreeMeshes ¶
func (*Model) ValidChange ¶
Click to show internal directories.
Click to hide internal directories.