leicht-io / kadmos

Javascript library for viewing .STL files using three.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kadmos

A simple zero configuration Javascript library made with Three.js to display 3D models in STL-format served by URL.

Follow the Demos!

For the full experience, I recommend following the demo application.

Kadmos in use

Installing

To use this library simply install it with NPM:

$ npm install kadmos

And use it like below:

Kadmos.initFromUrl();

This will tell Kadmos to serve the 3D model referred to by the URL so visiting e.g.:

http://localhost:1234/?fileUrl=https://ni.leicht.io/bg_1000_handle.stl&color=0x333333

loads the file from https://ni.leicht.io/bg_1000_handle.stl with the color 0x333333.

About

Javascript library for viewing .STL files using three.js


Languages

Language:TypeScript 77.5%Language:SCSS 22.3%Language:JavaScript 0.3%