Libraries.Fabrication.Geometry
11 classes
- The Contour class is a 2D path on one slice plane: a closed loop (an outline, a hole, a wall) or an open polyline (a fill line).
- The ContourLayers class groups a list of contours by slice plane once, so the contours of any one layer can then be fetched without scanning the whole list.
- The ContourSimplifier class removes points that hardly change a path's shape, with the Ramer-Douglas-Peucker algorithm: a point is kept only if leaving it out would move the path by more than the tolerance.
- The ConvexHull class finds the convex hull of a set of 2D points with Andrew's monotone chain algorithm: duplicate points are dropped, the rest sorted by x then y (merge sort), and the lower and upper hulls built in one pass each.
- The GeometryUtilities class holds the small numeric helpers the geometry and slicing classes share.
- The LineFill class fills a region with parallel straight lines (a scan-line hatch), the way infill, skin and support are printed.
- The MeshCheck class looks at each part (mesh) of a loaded model and says whether it is a closed solid, which a 3D printer needs.
- The PathRole class names what a toolpath prints as.
- The PolygonOffsetter class moves closed loops inward or outward by a fixed distance.
- The PolygonOperations class does boolean operations on closed loops (union, intersection, difference) by winding number, the way a Clipper-style library does: every edge is cut where it crosses another, each piece is kept when the winding numbers on its two sides straddle the requested level, and the kept pieces are chained back into loops.
- The TriangleMesh class flattens a loaded 3D model (every mesh of a ModelData from Libraries.Game.Graphics.Models.Data.ModelLoader) into one triangle list: separate x, y and z coordinate arrays, and three corner indices per triangle into them.