Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDontIntersect = errors.New("No intersection found") ErrCoplanar = errors.New("The triangles are coplanar") )
Functions ¶
func IsCoplanar ¶
func IsDontIntersect ¶
Types ¶
type ArrayBuffer ¶
type ArrayBuffer []Triangle
func (*ArrayBuffer) ConvertFrom ¶
func (this *ArrayBuffer) ConvertFrom(mesh Mesh)
func (*ArrayBuffer) NumTriangles ¶
func (this *ArrayBuffer) NumTriangles() int
type Box ¶
func BoxTriangle ¶
func BoxTriangles ¶
func (*Box) ExpandToCube ¶
func (*Box) Intersects ¶
func (*Box) IntersectsXY ¶
type BoxedTriangle ¶
type IndexBuffer ¶
func (*IndexBuffer) ConvertFrom ¶
func (this *IndexBuffer) ConvertFrom(mesh Mesh)
func (*IndexBuffer) NumTriangles ¶
func (this *IndexBuffer) NumTriangles() int
type Octree ¶
type Octree struct { *Box // contains filtered or unexported fields }
func (*Octree) Insert ¶
func (this *Octree) Insert(tri *BoxedTriangle)
type Plane ¶
func (Plane) TriangleCrosses ¶
type StlFile ¶
type StlFile struct {
// contains filtered or unexported fields
}
StlFile reads from an existing .stl file or creates a new one if it doesn't exist.
func NewStlFile ¶
func (*StlFile) ConvertFrom ¶
func (*StlFile) NumTriangles ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.