Choosing a kernel
A kernel is the library that computes geometry. Bitbybit gives you three for modelling, side by side under one API, and each is best at something different.
OpenCascade (occt) | Manifold (manifold) | JSCAD (jscad) | |
|---|---|---|---|
| Geometry | exact: true curves and surfaces | a mesh of triangles | a mesh of polygons |
| Good at | parts: fillets, chamfers, lofts, sweeps, measurements, assemblies | many booleans, lattices, imported and scanned meshes | quick solids, text, simple extrusions |
| Not for | thousands of booleans: each takes milliseconds to seconds | fillets or anything exactly round | precise CAD |
| Files | STEP, IGES, BREP, STL, DXF, SVG | meshes, STL through drawing | meshes |
| Builds along | Y, like the scene | Z | Z |
Choose OpenCascade for anything you would model in a CAD program, and for anything you will hand to another one as STEP. Choose Manifold when the count of cuts runs into hundreds, or when the input is already a mesh. Choose JSCAD for quick shapes and 3D text where exactness does not matter.
The same cylinder in two kernels
An OpenCascade cylinder has one round face: drawn, it is divided into triangles, but the shape itself stays exactly round. A Manifold cylinder is a prism, with as many sides as circularSegments says. Note also how each stands: OpenCascade builds along Y, which is up in the scene, while Manifold builds along Z, so its cylinder lies on its side.

- Rete
- Blockly
- TypeScript
const exact = await bitbybit.occt.shapes.solid.createCylinder({ radius: 2, height: 4, center: [-5, 0, 0] });
const mesh = await bitbybit.manifold.manifold.shapes.cylinder({ height: 4, radiusLow: 2, radiusHigh: 2, circularSegments: 12 });
await bitbybit.draw.drawAnyAsync({ entity: exact });
await bitbybit.draw.drawAnyAsync({ entity: mesh });
To stand a Manifold or JSCAD shape up beside an OpenCascade one, turn it a quarter turn about X.
Moving between kernels
A shape can travel one way without loss:
bitbybit.occt.shapeToManifoldMeshmeshes an OpenCascade shape into the form Manifold takes, andbitbybit.manifold.manifold.shapes.manifoldFromMeshmakes a Manifold solid of it. Model a part exactly, then cut it a thousand times in Manifold.- The other way, a mesh reaches OpenCascade only as flat triangles, never as true curves again. Keep the exact shape if you need it later.
Shapes from different kernels never mix in one call: an OpenCascade boolean takes OpenCascade shapes. Drawing takes them all.
Beyond the three
The IFC library reads and writes building models; IFC explains it. The Designer and design documents build their parts with OpenCascade.



