@matboks/utilities
Advanced tools
| import * as MarchingSquares from "marching-squares"; | ||
| import { Vec2, Polygon, AABB } from "../geometry/index.js"; | ||
| import { Vec2, Polygon, AABB, Hollowgon } from "../geometry/index.js"; | ||
| type ContouringOptions = { | ||
@@ -14,6 +14,3 @@ fn: (v: Vec2) => number; | ||
| }; | ||
| type Isoband = { | ||
| boundary: Polygon; | ||
| holes: Array<Polygon>; | ||
| }; | ||
| type Isoband = Hollowgon; | ||
| type IsobandResult = { | ||
@@ -20,0 +17,0 @@ isobands: Array<Isoband>; |
| import * as MarchingSquares from "marching-squares"; | ||
| import { vec2, Polygon } from "../geometry/index.js"; | ||
| import { vec2, Polygon, Hollowgon } from "../geometry/index.js"; | ||
| import { Resolution } from "./resolution.js"; | ||
@@ -168,3 +168,3 @@ export class Contouring { | ||
| activeShape.makeCounterClockwise(); | ||
| isobands.push({ boundary: activeShape, holes }); | ||
| isobands.push(new Hollowgon(activeShape, holes)); | ||
| } | ||
@@ -171,0 +171,0 @@ for (let i = 0; i < n; i++) { |
+1
-1
| { | ||
| "name": "@matboks/utilities", | ||
| "version": "0.0.18", | ||
| "version": "0.0.19", | ||
| "main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
274455
-0.01%6215
-0.05%