Documentation
¶
Index ¶
- func CreateSTL(path string, r Renderer) error
- func NewOctreeRenderer(s sdf.SDF3, meshCells int) *octree
- func Poly(p *sdf.Polygon, path string) error
- func RenderDXF(s sdf.SDF2, meshCells int, path string)
- func RenderDXFSlow(s sdf.SDF2, meshCells int, path string)
- func RenderSVG(s sdf.SDF2, meshCells int, path string, lineStyle string) error
- func RenderSVGSlow(s sdf.SDF2, meshCells int, path string, lineStyle string) error
- func SaveDXF(path string, mesh []*line) error
- func SaveSVG(path, lineStyle string, mesh []*line) error
- func WriteDXF(wg *sync.WaitGroup, path string) (chan<- *line, error)
- func WriteSVG(wg *sync.WaitGroup, path, lineStyle string) (chan<- *line, error)
- type DXF
- type EdgeI
- type PNG
- type Renderer
- type SVG
- type Triangle2
- type Triangle3
- type TriangleISet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOctreeRenderer ¶
func RenderDXFSlow ¶
RenderDXFSlow renders an SDF2 as a DXF file. (uses uniform grid sampling)
func RenderSVGSlow ¶
RenderSVGSlow renders an SDF2 as an SVG file. (uses uniform grid sampling)
Types ¶
type DXF ¶
type DXF struct {
// contains filtered or unexported fields
}
DXF is a dxf drawing object.
type PNG ¶
type PNG struct {
// contains filtered or unexported fields
}
PNG is a png image object.
func (*PNG) RenderSDF2 ¶
RenderSDF2 renders a 2d signed distance field as gray scale.
func (*PNG) RenderSDF2MinMax ¶
RenderSDF2MinMax renders a 2d signed distance field as gray scale (with defined min/max levels).
type SVG ¶
type SVG struct {
// contains filtered or unexported fields
}
SVG represents an SVG renderer.
type Triangle3 ¶
Triangle3 is a 3D triangle
func NewTriangle3 ¶
NewTriangle3 returns a new 3D triangle.
func (*Triangle3) Degenerate ¶
Degenerate returns true if the triangle is degenerate.
type TriangleISet ¶
type TriangleISet []triangleI
TriangleISet is a set of triangles defined by vertice indices.
func Delaunay2d ¶
func Delaunay2d(vs sdf.V2Set) (TriangleISet, error)
Delaunay2d returns the delaunay triangulation of a 2d point set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.