8000 GitHub - lsioctl/learn-vtk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lsioctl/learn-vtk

Repository files navigation

learn vtk.js

Goal

Manipulate locally some vtk.js examples

https://kitware.github.io/vtk-examples/site/

to better understand its API.

working with parcel

I used this documentation to make vtk work with parcel2

https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html

It mostly consists of:

  • installing @kitware/vtk.js instead vtk.js
  • Changing import path like this example:
-import vtkRenderer from 'vtk.js/Sources/Rendering/Core/Renderer';
+import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';

Launch

For example for cone1:

npm run cone1

browser http://localhost:1234

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0