package
0.0.0-20250127165859-030b425ef91c
Repository: https://github.com/deadsy/sdfx.git
Documentation: pkg.go.dev
# Functions
Delaunay2d returns the delaunay triangulation of a 2d point set.
Delaunay2dSlow returns the delaunay triangulation of a 2d point set.
LoadSTL loads an STL file (ascii or binary) and returns the triangle mesh.
NewDualContouring2D returns a Render2 object.
NewDXF returns an empty dxf drawing object.
NewMarchingCubesOctree returns a Render3 object.
NewMarchingCubesUniform returns a Render3 object.
NewMarchingSquaresQuadtree returns a Render2 object.
NewMarchingSquaresUniform returns a Render2 object.
NewPNG returns an empty PNG object.
NewSVG returns an SVG renderer.
Poly outputs a polygon as a 2D DXF file.
SaveDXF writes line segments to a DXF file.
SaveSTL writes a triangle mesh to an STL file.
SaveSVG writes line segments to an SVG file.
To3MF renders an SDF3 to a 3MF file.
ToDXF renders an SDF2 to a DXF file.
ToSTL renders an SDF3 to an STL file.
ToSVG renders an SDF2 to an SVG file.
ToTriangles renders an SDF3 to a triangle mesh.
# Structs
DualContouring2D renders is a 2D dual contouring renderer.
DXF is a dxf drawing object.
MarchingCubesOctree renders using marching cubes with octree space sampling.
MarchingCubesUniform renders using marching cubes with uniform space sampling.
MarchingSquaresQuadtree renders using marching squares with quadtree area sampling.
MarchingSquaresUniform renders using marching squares with uniform area sampling.
PNG is a png image object.
STLHeader defines the STL file header.
STLTriangle defines the triangle data within an STL file.
SVG represents an SVG renderer.
# Type aliases
EdgeI is a 2d/3d edge referencing a list of vertices.
TriangleI is a 2d/3d triangle referencing a list of vertices.
TriangleIByIndex sorts triangles by index.
TriangleISet is a set of triangles defined by vertice indices.