Skip to content

yeicor-3d/yet-another-cad-viewer

Repository files navigation

Yet Another CAD Viewer

A CAD viewer capable of displaying OCP models (CadQuery/Build123d/...) in a web browser.

Features

  • Cross-platform: works on any modern web browser.
  • All GLTF 2.0 features (textures, PBR materials, animations...).
  • All model-viewer features (smooth controls, augmented reality...).
  • Load multiple models at once, load external models and even images as quads.
  • Control clipping planes and transparency of each model.
  • View and interact with topological entities: faces, edges, vertices and locations.
  • Select any entity and measure bounding box size and distances.
  • Hot reloading while editing the CAD model (using the yacv-server package).
  • Fully-featured static deployment: just upload the viewer and models to your server.

Usage

The example is a fully working project that shows how to use the viewer.

You can play with the latest demo here (or without animation).

Demo

Related projects

  • cq-studio: provides an alternative workflow that detects file changes instead of relying on an interactive environment like Jupyter for hot-reloading. Uses the same backend and frontend behind the scenes.