CAD viewer

A 3D viewer for parts, with display modes, a section plane, picks and a measured distance.

A picture of the app

Open in its own page Source of this app

The 3D view of this app draws with WebGPU, or with WebGL 2 in a browser that has no WebGPU, such as Firefox on Linux. A browser with neither shows a line of text in its place.

The viewer shows a part in a 3D view with a grid, the axes and the view cube. The part is made by code: a bracket of four pieces. Sample loads a gear from an STL file that is built into the program.

What to try#

  • Orbit, pan and zoom the part with the mouse or with touch.
  • Change the display mode: shaded, shaded with edges, wireframe and hidden line.
  • Move the slider of the section plane. The cut has a cap and an outline.
  • Click the part. The side panel shows the item, the triangle, the point and the normal.
  • Pick two points to measure the distance between them, drawn as a dimension line.

On the desktop, Open asks for an STL or OBJ file. A web page has no file dialog, so here the sample is what opens.