mirror of
https://github.com/brunopostle/ifcurl.git
synced 2026-07-12 10:18:14 +00:00
- GET /viewer?url=ifc://... serves a self-contained HTML page that loads @thatopen/components v3 from CDN and renders the IFC model in WebGL - GET /proxy?url=<raw> proxies IFC bytes from Forgejo to the browser, avoiding CORS restrictions - forgejo/templates/custom/footer.tmpl injects a "View in 3D" button on .ifc file view pages in Forgejo; deploy to /var/lib/forgejo/custom/templates/custom/footer.tmpl CDN loading required several non-obvious fixes documented in viewer.py: web-ifc loaded from unpkg (not esm.sh) to avoid the Node.js process polyfill that breaks the browser ST build's environment check; fragments worker wrapped in a blob URL for Firefox cross-origin worker compatibility; model.box used for camera fit before tiles exist; fragments.core.update(true) to flush tile queue. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| custom | ||