@bitbybit-dev/manifold
Version:
Bit By Bit Developers Manifold based CAD Library to Program Geometry
22 lines (21 loc) • 515 B
JavaScript
export class CrossSectionEvaluate {
constructor(wasm) {
this.manifold = wasm;
}
area(inputs) {
return inputs.crossSection.area();
}
isEmpty(inputs) {
return inputs.crossSection.isEmpty();
}
numVert(inputs) {
return inputs.crossSection.numVert();
}
numContour(inputs) {
return inputs.crossSection.numContour();
}
bounds(inputs) {
const bounds = inputs.crossSection.bounds();
return [bounds.min, bounds.max];
}
}