mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 19:32:37 +01:00
42 lines
856 B
JavaScript
42 lines
856 B
JavaScript
|
|
export class Surface {
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
intersect(other) {
|
|
return this.toNurbs.intersect(other.toNurbs());
|
|
};
|
|
|
|
toNurbs() {
|
|
throw 'not implemented';
|
|
}
|
|
|
|
coplanarUnsignedForSameClass(other, tol) {
|
|
throw 'not implemented';
|
|
}
|
|
|
|
equalsUnsignedForSameClass(other, tol) {
|
|
throw 'not implemented';
|
|
}
|
|
|
|
isSameClass(other) {
|
|
return this.constructor.name == other.constructor.name;
|
|
}
|
|
|
|
coplanarUnsigned(other, tol) {
|
|
if (this.isSameClass(other)) {
|
|
return this.coplanarUnsignedForSameClass(other, tol)
|
|
}
|
|
return this.toNurbs().coplanarUnsignedForSameClass(other.toNurbs());
|
|
}
|
|
|
|
equals(other, tol) {
|
|
if (this.isSameClass(other)) {
|
|
return this.equalsForSameClass(other, tol)
|
|
}
|
|
return this.toNurbs().equalsForSameClass(other.toNurbs());
|
|
}
|
|
}
|
|
Surface.prototype.isPlane = false;
|