@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
17 lines (16 loc) • 643 B
JavaScript
import { VerbCurve } from "./curve";
import { VerbIntersect } from "./intersect";
import { VerbSurface } from "./surface";
/**
* Contains various functions for Nurbs curves and surfaces.
* These functions wrap around Verbnurbs library that you can find here http://verbnurbs.com/.
* Thanks Peter Boyer for his work.
*/
export class Verb {
constructor(context, geometryHelper, math) {
this.math = math;
this.curve = new VerbCurve(context, geometryHelper, this.math);
this.surface = new VerbSurface(context, geometryHelper, this.math);
this.intersect = new VerbIntersect(context, geometryHelper);
}
}