Nesting
NestingMaxRectsBestFit is a rectangle nesting algorithm used to place multiple rectangular shapes into a larger container while minimizing wasted space. It works by tracking the largest available free rectangles in the container and placing each new item in the position where it best fits according to a chosen heuristic (usually minimal leftover space).
Docs for v4.0.2, the latest version.
ID
nesting-rectangular-nesting-nesting-maxrects-best-fitGroup
Rectangular Nesting
Plugin
NestingKeywords
Nesting MaxRects Best Fit
Rectangular Nesting
8
What the node takes in, from wires or typed values.
Origin
Default [0,0,0]
Origin
Geometries
List of geometries to be nested
Sheet Width
Default 500
Width of the sheet used for nesting
Sheet Height
Default 500
Height of the sheet used for nesting
SheetsGap
Default 10
Spacing between sheets
Edge Clearance
Default 0
Distance from the edges of the sheet to the curves/surfaces to be nested
Spacing
Default 0
Distance between curves
Respect Grain
Default false
Keep the grain of textured sheet materials along the sheet’s long side. Each part is turned so its long side follows the grain (its short side with Grain "Along short side"; a square part its own Y axis, or its X axis with "Along short side") and may then only rotate by 180°. Parts with Grain "Free", parts of materials without "Textured material" set, and parts with no material rotate as usual. A sheet that fits within the sheet the parts were prepared for (Prepare Parts’ sheet clamped to the router, or an offcut of it) keeps that sheet’s grain, even where its own long side runs the other way.
7
What the node gives out, to wire into other nodes.
Sheets
Sheet boundary curves. Flat array of rectangular curves representing each sheet used in the nesting.
Geometries
Nested geometries in their final positions. Flat array of all geometries in the order they appear across all sheets.
Move Vectors
Translation vectors for each input geometry. Array aligned with input geometries showing movement from original position. Unplaced geometries have zero vectors.
Rotation Angles
Rotation angles in radians for each input geometry. Array aligned with input geometries showing rotation applied. Unplaced geometries have zero rotation.
Sheet IDs
Sheet index for each input geometry. Array aligned with input geometries showing which sheet each geometry is placed on. Unplaced geometries have value -1.
Geo IDs
Original input geometry indices. Flat array showing which input geometry corresponds to each nested geometry.
Grain Arrows
With Respect Grain on: an arrow along the grain on every sheet and on every grain-locked part, turned with the part. Every part arrow should run along its sheet’s arrow; one across it marks a part placed against the grain.
This node has no documentation beyond its description and ports yet.