Kernel Factories

Factory functions for Replicad, OpenCASCADE, Manifold, OpenSCAD, JSCAD, Zoo, and Tau kernel plugins.

Kernel Factories

Use kernel factories when registering CAD engines with createRuntimeClient. Each factory returns a KernelPlugin that the client uses for kernel selection and worker loading.

Types

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Factories

FactoryExtensionsPurpose
replicad(options?)ts, jsOpenCASCADE-based parametric BRep via Replicad API
opencascade(options?)ts, jsDirect OpenCASCADE API access
manifold(options?)ts, jsMesh-first manifold modeling with robust booleans
openscad()scadCSG modeling with OpenSCAD language
jscad()ts, js@jscad/modeling parametric CSG
zoo(options)kclKCL via Zoo WebSocket API
tau()*Catch-all converter for STEP, STL, 3MF, OBJ imports

Usage

import { createRuntimeClient, fromMemoryFS } from '@taucad/runtime';
import { replicad, opencascade, manifold, openscad, jscad, zoo, tau } from '@taucad/runtime/kernels';
import { esbuild } from '@taucad/runtime/bundler';

const client = createRuntimeClient({
  kernels: [
    replicad({ withBrepEdges: true }),
    opencascade(),
    manifold(),
    openscad(),
    jscad(),
    zoo({ baseUrl: 'wss://example.com/v1/kernels/zoo' }),
    tau(),
  ],
  bundlers: [esbuild()],
  fileSystem: fromMemoryFS(),
});