Skip to content

CAD PreviewInteractive 3D CAD and mesh previews in VS Code

Open a STEP, IGES, BREP, STL, OBJ, PLY, glTF, 3MF, Collada, AMF, USD, VRML, or FBX file โ€” CAD Preview renders it instantly inside the editor with full orbit, pan, and zoom.

See It in Action โ€‹

The CAD Preview editor โ€” 3D viewer, orientation cube, Components/Parts/Edits/FE Mesh sidebar, toolbar, and view controls.

Previewing a STEP model with colour-coded parts, parametric variables, and every panel live. The tutorials build a real part start to finish; Getting Started is the panel-by-panel reference.

Geometry creation opsNamed colour-coded partsGenerated FE mesh overlay

Supported Formats โ€‹

FormatExtensionsPipeline
STEP.step, .stpOpenCascade.js โ†’ BRepMesh tessellation
IGES.iges, .igsOpenCascade.js โ†’ BRepMesh tessellation
BREP.brepOpenCascade.js โ†’ BRepMesh tessellation
OpenSCAD CSG.csgCSG parse โ†’ OCCT build โ†’ BRepMesh
OpenSCAD Src.scadopenscad binary โ†’ .csg โ†’ same as above
STL.stlThree.js STLLoader
OBJ.objThree.js OBJLoader
PLY.plyThree.js PLYLoader
glTF.gltf, .glbThree.js GLTFLoader
3MF.3mfThree.js 3MFLoader (display-only on the host)
Collada.daeThree.js ColladaLoader (import-only; display-only on the host)
AMF.amfThree.js AMFLoader (import-only; display-only on the host)
USD.usd .usda .usdc .usdzThree.js USDLoader (import-only; display-only on the host)
VRML.wrlThree.js VRMLLoader (import-only; display-only on the host)
FBX.fbxThree.js FBXLoader (import-only; display-only on the host)

Plus VTK (.vtk), VTU (.vtu), MED (.med), CGNS (.cgns), Exodus (.exo, .e), XDMF (.xdmf), Kratos MDPA (.mdpa), OpenFOAM (.foam), Gmsh Mesh (.msh, .msh2), Abaqus (.inp), I-DEAS Universal (.unv), SU2 (.su2), INRIA Medit (.mesh), GiD Postprocess (.post.msh), libMesh (.xda, .xdr and their .gz/.bz2 pairings), Kratos CAD JSON (.cad.json โ€” an exact NURBS B-rep the iga_sample/iga_refine/iga_evaluate tools read), Nastran Bulk Data (.bdf), and the meshio++ 17.3.0 binary writers Tecplot (.plt), FEBio plot (.xplt), Medit binary (.meshb), MSC Marc post (.t19), Abaqus results (.fil), Ansys MAPDL results (.rst), LS-DYNA d3plot (.d3plot), plus 17.4.0's Nastran OP2 results (.op2) via the host-side meshio++ bridge โ€” Gmsh Mesh, Abaqus, I-DEAS Universal, SU2, INRIA Medit and Nastran close a real export/import asymmetry (this codebase's own FE Meshing panel wrote them but couldn't reopen them). SVG and DXF are not rendering formats but appear at both ends of the pipeline: Import SVGโ€ฆ/Import DXFโ€ฆ trace a 2D drawing's geometry into sketch polylines/profile ops, and Export Silhouette SVGโ€ฆ/โ€ฆDXFโ€ฆ write a 2D outline of the model back out.

Badges โ€‹

CI Docs VS Code Engine Three.js OpenCascade.js License TypeScript

Released under the GPL-3.0-or-later License.