Phase 5: 3D Generation · 45 min · Python · trimesh · Blender (optional)
Mesh Formats & Topology
OBJ for interchange, GLB for web, STL for printing, FBX for animation — knowing mesh formats is 3D engineering literacy.
Hiring signal: Mesh format and topology knowledge demonstrates you can work with 3D models in production pipelines, not just generate them.
What you will learn
- Navigate mesh formats: OBJ, GLB/GLTF, STL, FBX, PLY — when to use each
- Evaluate topology quality: game-ready vs visual-only, quad vs triangle meshes
- Understand retopology: cleaning up generated meshes for production use
- Check for watertight meshes and manifold geometry for 3D printing
The Problem
A team generates a 3D model with Tripo AI in GLB format. They need to:
- Send it to a 3D printer → but 3D printers need STL, not GLB
- Edit it in Blender → Blender prefers OBJ for editing
- Use it in a Unity game → Unity needs FBX or GLB with proper topology
- Display it on a web page → GLB is perfect for web (Three.js)
They don't know the differences between mesh formats or when to use each. They try to send a GLB file to a 3D printer — it fails. They try to edit a dense mesh in Blender — it's too slow.
Mesh format and topology knowledge demonstrates you can work with 3D models in production pipelines, not just generate them.
What you'll build
Navigate mesh formats (OBJ, GLB, STL, FBX, PLY) and convert between them. Evaluate topology quality (game-ready vs visual-only, quad vs triangle). Check for watertight meshes and manifold geometry for 3D printing. Understand retopology.
Mesh Formats
Format Comparison
| Format | Use Case | Textures | Animation | File Size | Compression |
|---|
| OBJ | Interchange, editing | External (MTL) | No | Medium | None |
| GLB | Web, AR/VR, game engines | Embedded | Yes | Small | Binary |
| GLTF | Web (same as GLB) | External | Yes | Small | JSON + binary |
| STL | 3D printing | No | No | Small | None |
| FBX | Animation, game engines | Embedded | Yes | Medium | Binary |
| PLY | 3D scanning, point clouds | Limited | No | Medium | None |
When to Use Each
# OBJ — interchange between 3D software (Blender, Maya, ZBrush)
# GLB — web display (Three.js, React Three Fiber), AR/VR
# STL — 3D printing (watertight required)
# FBX — animation pipelines (Maya → Unity/Unreal)
# PLY — 3D scanning output, point cloud data
Format Conversion with trimesh
import trimesh
# Load any format
mesh = trimesh.load("model.glb")
# Export to different formats
mesh.export("model.obj") # For Blender editing
mesh.export("model.stl") # For 3D printing
mesh.export("model.fbx") # For animation (requires additional deps)
mesh.export("model.ply") # For 3D scanning workflows
# GLB for web
mesh.export("model.glb") # Embedded textures, binary, small
You generated a 3D model in GLB format and need to send it to a 3D printer. What do you need to do?
Convert to STL format using trimesh: mesh.export("model.stl"). STL is the standard format for 3D printing. The mesh must be watertight (manifold) — no holes, no self-intersections. Check with mesh.is_watertight in trimesh. If not watertight, repair it before printing. GLB is for web display, not 3D printing.
Unlock the full lesson
You've read the first 2 sections. The rest of this lesson covers Topology Quality, Watertight / Manifold Geometry, Retopology, Key Takeaways, What's Next — plus a hands-on lab, quiz, and project artifact.
Create a free account to unlock Phase 0 and Phase 1 of every course — no credit card.
Browse all courses · View pricing · DeVenture Academy