Used to display STL file documents in Mendix. This widget displays basic information like length, width and height. The approximate volume of a 3D STL model can be extracted and stored in a variable if needed.
Display of 3D STL model, calculate and store volume, display dimensions
- Install NPM package dependencies by using:
npm install
. If you use NPM v7.x.x, which can be checked by executingnpm -v
, execute:npm install --legacy-peer-deps
. - Run
npm start
to watch for code changes. On every change:- the widget will be bundled;
- the bundle will be included in a
dist
folder in the root directory of the project; - the bundle will be included in the
deployment
andwidgets
folder of the Mendix test project.
Sources used:
Licence: CC BY-SA 4.0