/ concept-collection / mesh-studio
Sign in
concept-collection / mesh-studio
mesh-studio / src / occ / types.ts
15 lines · 673 BBlameHistoryRaw
1/**
2 * The OpenCASCADE WASM instance.
3 *
4 * opencascade.js ships a generated `.d.ts` for the entire OCCT API, but the
5 * exact overload-suffixed member names (`_1`, `_2`, …) are only verifiable at
6 * runtime, and the surface is huge. We therefore type the instance loosely and
7 * keep *all* OCCT access confined to `src/occ/*`. Everything outside this
8 * directory is fully typed against the `SurfaceModel` in `src/model`.
9 */
10// eslint-disable-next-line @typescript-eslint/no-explicit-any
11export type OpenCascade = any
13/** An OCCT `TopoDS_Shape` (opaque to the rest of the app). */
14// eslint-disable-next-line @typescript-eslint/no-explicit-any
15export type Shape = any
moveopenescclose