Hide menu
Loading...
Searching...
No Matches
Installation

MTK Web can be installed with npm.

Install

Open your project folder and download the package in your Customer Corner, or open your project folder in a terminal and run:

npm install <provided url from your Customer Corner>

The package will be downloaded and installed.

There are four options to include MTK Web to your project:

// Option 1: Import the entire library.
import * as mtk from '@mtk/web';
const model = new mtk.Model();
// Option 2: Import only needed module.
import * as modelData from '@mtk/web/model-data';
const model = new modelData.Model();
// Option 3: Import just the parts you need.
import { ModelData } from '@mtk/web';
const model = new Model();
// Option 4: Import just the parts you need from concrete module.
import { ModelData } from '@mtk/web/model-data';
const model = new Model();

Dependencies

To visualize a model in MTK Web, the original 3D file must be converted into the .mtkweb format using the Manufacturing Toolkit. We provide a ready-to-use example that demonstrates how to create a console converter application: MTK Converter Example.