English Version | 中文版 (Chinese Version)
Online 3D STL Viewer & Geometry Analyzer is a modern, high-performance, browser-based WebGL application designed for 3D printing enthusiasts, CAD designers, mechanical engineers, and makers.
It allows you to open, view, inspect, and measure Binary and ASCII .stl 3D files instantly with zero software installation and 100% local client-side data privacy.
👉 Live Demo: https://open-stl-file.github.io/
👉 中文版 (Chinese Demo): https://open-stl-file.github.io/zh/
- 🚀 Instant Client-Side Parsing: Parses both Binary and ASCII STL files in milliseconds using pure JavaScript
DataView. Zero server uploads required. - 🎨 CAD Technical Edges Mode: Features a dedicated crisp engineering outline rendering style (
THREE.EdgesGeometry) paired with flat shading on pure light background—matching authentic technical drawing aesthetics. - 📊 3D Geometry Analytics: Automatically computes 3D Bounding Box dimensions (
$X \times Y \times Z$ mm), total volume ($cm^3$ ), surface area ($cm^2$ ), triangle count, and vertex count. - ⚖️ 3D Printing Material Weight Estimator: Instant weight calculation (
$g$ ) for PLA, ABS, PETG, Resin, Aluminum, and Stainless Steel filaments. - ✂️ Dynamic Section Clipping Plane: Axis-aligned (
$X/Y/Z$ ) slicing plane to inspect interior hollow geometry, core structures, and wall thickness. - 📏 Point-to-Point 3D Measurement: Raycast interactive spatial distance measurement between any two points on the 3D surface.
- 🗿 Pre-Loaded 3D Models:
- ♾️ Möbius Strip Sculpture: Iconic single-surface topological geometry sculpture in cyan metallic finish.
- 🏛️ Temple of Heaven (Beijing): Architectural masterpiece with 3-tiered marble altar, red columns, and triple-tier royal blue roofs.
- ⚙️ Mechanical Spur Gear: Precision 16-tooth transmission gear ideal for CAD outline inspection.
- 🌈 15-Bit RGB Vertex Color Support: Full binary STL 15-bit color attribute parsing and rendering.
.
├── index.html # Root English homepage (https://open-stl-file.github.io/)
├── zh/
│ └── index.html # Chinese homepage (https://open-stl-file.github.io/zh/)
├── style.css # Glassmorphism UI stylesheet
├── js/
│ ├── stlParser.js # High-performance Binary & ASCII STL parser
│ ├── samples.js # Procedural 3D model generator (Möbius, Temple, Gear)
│ └── app.js # Three.js WebGL controller & analytics engine
├── .github/
│ └── workflows/
│ └── deploy.yml # Zero-token automated GitHub Pages CI/CD workflow
├── README.md # English documentation
└── README.zh-CN.md # Chinese documentation
- 3D Engine: Three.js (WebGL Renderer, OrbitControls, PCFSoftShadowMap)
- UI Design: Modern Glassmorphism layout with CSS Custom Properties & Google Fonts (
Inter&JetBrains Mono) - Icons: FontAwesome 6
- Deployment: GitHub Actions + GitHub Pages
Simply clone the repository and serve static files locally:
git clone https://github.com/open-stl-file/open-stl-file.github.io.git
cd open-stl-file.github.io
# Start a local HTTP server
python -m http.server 8080Open http://localhost:8080/ in your browser.
This project is licensed under the MIT License.