Versions in this module Expand all Collapse all v0 v0.0.1 Jun 24, 2021 Changes in this version + type AttributeName string + var AttributeColor AttributeName = "color" + var AttributeNor AttributeName = "normal" + var AttributePos AttributeName = "position" + var AttributeUV AttributeName = "uv" + type BezierCurve struct + func NewBezierCurve(cp ...*primitive.Vertex) *BezierCurve + func (bc *BezierCurve) At(t float64) math.Vector + type BufferAttribute struct + Stride int + Values []float64 + type BufferedMesh struct + func NewBufferedMesh() *BufferedMesh + func (bm *BufferedMesh) AABB() primitive.AABB + func (bm *BufferedMesh) Faces(iter func(primitive.Face, material.Material) bool) + func (bm *BufferedMesh) GetAttribute(name AttributeName) *BufferAttribute + func (bm *BufferedMesh) GetMaterial() material.Material + func (bm *BufferedMesh) Normalize() + func (bm *BufferedMesh) NumTriangles() uint64 + func (bm *BufferedMesh) SetAttribute(name AttributeName, attribute *BufferAttribute) + func (bm *BufferedMesh) SetMaterial(mat material.Material) + func (bm *BufferedMesh) SetVertexBuffer(vbo []int64) + func (bm *BufferedMesh) Type() object.Type + type HalfedgeMesh struct + type Mesh interface + AABB func() primitive.AABB + Faces func(func(f primitive.Face, m material.Material) bool) + GetMaterial func() material.Material + Normalize func() + NumTriangles func() uint64 + SetMaterial func(m material.Material) + func NewPlane(width, height float64) Mesh + type QuadMesh struct + type Ray struct + Dir math.Vector + Ori math.Vector + type TriangleMesh struct + type TriangleSoup struct + func NewTriangleSoup(ts []*primitive.Triangle) *TriangleSoup + func (f *TriangleSoup) Faces(iter func(primitive.Face, material.Material) bool) + func (f *TriangleSoup) GetMaterial() material.Material + func (f *TriangleSoup) NumTriangles() uint64 + func (f *TriangleSoup) Type() object.Type + func (m *TriangleSoup) AABB() primitive.AABB + func (m *TriangleSoup) Center() math.Vector + func (m *TriangleSoup) Normalize() + func (m *TriangleSoup) Radius() float64 + func (t *TriangleSoup) SetMaterial(mat material.Material)