StaticrunRun the marching squares algorithm to extract polygons from an iso function.
Iso function (x: number, y: number) => number.
Negative values are "inside", positive are "outside".
AABB defining the region to extract surfaces from.
Vec2 defining cell dimensions. Auto-disposed if weak.
Interpolation quality (default 2). Must be >= 0.
Optional Vec2 for sub-grid partitioning. Auto-disposed if weak.
Whether to combine adjacent polygons (default true).
Optional GeomPolyList to populate. If null, a new one is created.
The populated GeomPolyList.
Isosurface extraction using the marching squares algorithm.
Static utility class — all functionality is in the
run()method.Converted from nape-compiled.js lines 16879–17258.