프로젝트
GitHub에서 보기
Kitware/vtk-wasm
소개
Use VTK for 3D scientific visualization in browsers through WebAssembly
과학 및 공학측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original@kitware/vtk-wasm
JavaScript bindings for loading and driving VTK compiled to WebAssembly — build 3D visualizations in the browser with no C++ required.
Full documentation, guides, and API reference: https://kitware.github.io/vtk-wasm/
Usage
Install the package:
npm install @kitware/vtk-wasm
Load the runtime, create a session, and use its vtk namespace:
import { loadAsync } from "@kitware/vtk-wasm";
const BUNDLE = "https://raw.githack.com/Kitware/vtk-wasm/dist/latest/vtk-wasm32-emscripten.tar.gz";
const runtime = await loadAsync({url: BUNDLE });
const session = runtime.createStandaloneSession();
const vtk = session.vtk;
const cone = vtk.vtkConeSource();
// ... build and render your scene
No build step? Load the UMD bundle from a CDN and use the global vtkwasm:
<script src="https://unpkg.com/@kitware/vtk-wasm/vtk-umd.js"></script>
See the Loading VTK.wasm guide to get started and the API reference for every export.
Contributing
Requires Node.js (LTS).
npm install # install dependencies
npm run build # build the ESM + UMD bundles into dist/
npm run docs:dev # run the documentation site locally
npm run lint # lint the source
Repository layout
src/— library source.examples/— example applications.docs/— documentation site (VitePress); the API reference is generated from source JSDoc.dist/— build output.
관련 프로젝트 살펴보기
불러오는 중…