JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q27435F
  • License MPL 2.0

JavaScript implementation of OpenVDB.

Package Exports

  • vdb-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vdb-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vdb-js

JavaScript implementation of OpenVDB.

Usage

JavaScript

let vdb = require('vdb-js');

let grid = new vdb.Grid(-1);
let accessor = grid.getAccessor();

accessor.setValueOn([0, 0, 0], 42);
accessor.getValue([0, 0, 0]); // 42

TypeScript

import { Grid } from 'vdb-js';

const grid = new Grid(-1);
const accessor = grid.getAccessor();

accessor.setValueOn([0, 0, 0], 42);
accessor.getValue([0, 0, 0]); // 42

Publish

  1. npm login
  2. yarn nx build vdb
  3. cd ./dist/libs/vdb
  4. npm publish