xfanta

Preview3D - quick previews of 3D models and G-code, with export

Michal Fanta7 min readAlso available inCS
Preview3D - quick previews of 3D models and G-code, with export

Back when I was still on Windows, I installed PowerToys and suddenly had PrusaSlicer G-code previews right in File Explorer. It was a pleasant surprise. When I later moved to macOS, I quickly got used to previewing files in Finder with the space bar.

What I missed were previews and thumbnails for STEP files, which I use more and more. So I started building Preview3D, a macOS nad iPad app that brings Quick Look previews and Finder thumbnails to STEP files.

Before long, support grew beyond STEP to include many of the 3D formats I work with every day.

Preview3D on a Mac: a 3D model previewed with the space bar, and thumbnails in the Finder

I ended up adding support for the common 3D formats too, so there'd be no need for a separate app per format. Besides Quick Look, the app also generates the thumbnails shown in the Finder - so a folder full of CAD exports stops looking like a folder full of blank sheets of paper.

And once I had previews of 3D models, including colour rendering of models painted in PrusaSlicer as 3MF, I decided to add G-code previews as well, to make the support for 3D printing complete.

Building the iPad version wasn't that hard after that, and being able to look at a model in AR comes in handy now and then.

The koala from Low Poly ZOO standing in augmented reality, shown on an iPhone

Update from September 2026

A fair bit has happened since this was written. Preview3D now runs on iPhone and Apple Vision Pro as well as Mac and iPad - same purchase, no second payment.

It reads the colours of multi-colour 3MFs from PrusaSlicer and from Bambu Studio, so a model shows in the colours it will be printed in.

And the Info panel has gained a model check: whether the mesh is closed, how many holes and non-manifold edges it has, and how many separate parts it falls into.

Most of all: for your model here on Printables you can now generate an animated picture in which the model keeps its own colours - with a QR code in the corner that lets anyone stand it on their desk in AR, without installing anything.

I wrote a separate article about it: Your model is orange right now. It doesn't have to be, and it can stand on someone's desk.

Supported formats

The app handles roughly twenty formats. The ones you're likely to use:

The interesting ones are the formats macOS can't handle on its own. STEP, painted 3MF, FBX and 3DS won't render without help - and that's exactly where the difference shows up between a blank icon and "I can see what this is".

A colour model in GLB format in the Preview3D preview

STEP - the format that started all this

I soon found out it wouldn't be that simple. For tessellation - turning a B-rep solid into a triangle mesh - there's no available library I could have used in a macOS app.

So I wrote my own. It's called StepKit, it's written entirely in Swift, and it takes care of both reading STEP files and turning them into triangles.

Thanks to it you can view simple parts as well as complex assemblies. An assembly shows a part tree - click a part to highlight or isolate it, and you can export just that one part.

The app also shows detailed information about the model: volume, surface area, centre of mass, bounding-box dimensions, the number of faces and edges, and whether the model is watertight. For STEP files it additionally reads PMI - the dimensions, tolerances and datums written into the file itself under the AP242 standard, which you'd otherwise only find on a drawing.

Export goes to STL, OBJ, GLB, PLY or USDZ. You can also save a snapshot of the current view as a PNG, at 1×, 2× or 4× resolution.

A STEP assembly in Preview3D with dimensions and tolerances from PMI

3MF - multi-colour prints in their filament colours

PrusaSlicer projects are saved as 3MF, so having previews for that format made sense too. And now that multi-colour models keep appearing, I wanted those previews in colour - including the painting for multi-material prints.

PrusaSlicer stores the painting as information attached to each individual triangle. Preview3D reads it and shows the model in its filament colours, including brush detail finer than a single triangle. So you see the finished multi-colour print before it leaves the slicer.

A multi-colour 3MF from PrusaSlicer in its filament colours

G-code - the toolpath, layer by layer

The last of the formats that matter for 3D printing are .gcode and the binary .bgcode. These files contain rendered previews — the ones you see on the printer, in Prusa Connect or in the Prusa app. So why not have them in the Finder as well. The preview works for both formats, and alongside the image it shows the print time, filament use and material.

When you open the file, you can switch to an interactive view, the kind you know from the preview in PrusaSlicer. Toolpaths are coloured by feature type (perimeters, infill, supports, bridges and more), using the same colour palette as PrusaSlicer.

An interactive G-code preview with toolpaths coloured by feature type

And it isn't only about G-code from PrusaSlicer - the app also understands the markers used by OrcaSlicer, Bambu Studio, Slic3r and Cura.

On the left there's a vertical layer slider. Drag it and you can look at the individual layers at any height.

The view is optimised for speed. A small model like a Benchy is drawn in full detail; larger and more complex models may be drawn in a simplified form so that moving around stays fast and smooth.

On iPad

The iPad does the same thing, layer slider included. On top of that you can use AR to place the model in the room and walk around it - handy for shapes that are hard to judge from a picture, or when you want to show something to someone else.

A model in augmented reality on an iPad

The model is placed in AR at roughly 20 cm, not at its real size. There's a reason: 3D files don't agree on units, and plenty of them carry no unit at all. You'll find the real dimensions in the info panel, in millimetres.

From a weekend idea to a $9.99 app

In the end, what started as an attempt to build a simple app for viewing STEP files turned into an app that does a great deal more. It was also a lot more work than I originally expected. So I decided to release it on the App Store for a one-time $9.99.

No subscription, no in-app purchases, no account. One purchase covers both Mac and iPad (Requires macOS 14+ or iPadOS 17+) The app has no network access - everything runs on your device and no file is sent anywhere.

If you give it a try, tell me what format you threw at it and whether it opened at product web page preview3d.app or in comments. That's the feedback I care about most.


This article was first published on Printables.

Written by
Michal Fanta

I design 3D models in Onshape, print them on Prusa 3D printers, and build websites and apps.

Comments

No comments yet. Be the first.

Your name and comment are published. Your email isn’t; I only use it to write back. Want a comment taken down? Write to apps@xfanta.com.

Follow what I make

New apps, new models and new posts — pick the channel you already use.