Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mesh ¶
type Mesh struct {
Triangles []Triangle
}
A mesh represents a collection of triangles
func (*Mesh) BoundingBox ¶
func (*Mesh) SurfaceArea ¶
type Triangle ¶
type Triangle struct {
// the 3 vertices that make up a facet
Vertices [3]Vec3
// triangle normal vector
Normal Vec3
// color of the triangle
Color *Color
}
A triangle is made up of 3 vertices and has a surface normal
func (*Triangle) SignedVolume ¶
Click to show internal directories.
Click to hide internal directories.