@tscad/modeling
v0.5.0
Published
Typescript friendly re-exports of `@jscad/modeling`
Downloads
452
Readme
@tscad/modeling
Typescript friendly re-exports of @jscad/modeling
Usage
Just replace your @jscad/modeling import with @tscad/modeling like this:
-import { booleans, extrusions, primitives, transforms } from '@jscad/modeling';
-
-const { cube } = primitives;
+import { cube } from '@tscad/modeling/primitives';
export function main() {
cube({size: [1, 2, 3]})
}State
Primitives
Currently, 2 of 21 JSCAD primitives are re-exported in @tscad/modeling.
| Primitive | Re-exported | | ---------------- | ----------- | | arc | ❌ | | circle | ❌ | | cube | ✅ | | cuboid | ❌ | | cylinder | ❌ | | cylinderElliptic | ❌ | | ellipse | ❌ | | ellipsoid | ❌ | | geodesicSphere | ❌ | | line | ❌ | | polygon | ❌ | | polyhedron | ❌ | | rectangle | ❌ | | roundedCuboid | ❌ | | roundedCylinder | ❌ | | roundedRectangle | ❌ | | sphere | ✅ | | square | ❌ | | star | ❌ | | torus | ❌ | | triangle | ❌ |
Developed as part of the tscad project.
