Coder Social home page Coder Social logo

vtk.js-examples's Introduction

VTK.js examples

This repository contains VTK.js examples used in the VTK.js+OHIF tutorials. A link will be provided to the final slides (to be inserted).

Examples overview

There are a few examples in this repo. They are listed below:

  • standalone.html: A self-contained example that renders a cone. Useful as a playground and prototyping.
  • src/cone.js: Same result as standalone.html, but using a webpack build approach. Good base for further application development.
  • src/cone-filter.js: Example that demonstrates VTK.js filters.
  • src/volume.js: Example that demonstrates basic volume rendering without transfer functions. Refer to the transfer function volume example for a complete rendering example.
  • src/volume-transfer.js: Example that demonstrates basic volume rendering with transfer functions.
  • src/image-slicing.js: Example that demonstrates volume slicing and interaction.
  • src/widgets.js: Example that demonstrates a volume cropping widget.

Building the examples

For standalone.html, no build instructions are required. Just load it up in your browser!

For the rest of the examples, they can be built as follows:

  • npm run dev:cone
  • npm run dev:cone-filter
  • npm run dev:volume
  • npm run dev:volume-transfer
  • npm run dev:image-slicing
  • npm run dev:widgets

Running the above commands will use the webpack-dev-server, which will watch the transpiled files and reload the page whenever changes occur. Once run, you can see the results at http://localhost:8080/.

vtk.js-examples's People

Contributors

floryst avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.