Skip to content

Latest commit

 

History

History
 
 

validator

3D Tiles Validator

Node.js library and command-line tools for validating 3D Tiles tilesets.

This validator is still in alpha and does not have complete coverage of the 3D Tiles specification. The validator provides basic validation for:

  • Tileset JSON + external tilesets
  • Tile formats: b3dm, i3dm, pnts, and cmpt
  • Embedded glb and external glTF using glTF-Validator

Instructions

Clone this repo and install Node.js. From the validator directory, run:

npm install

Command line tools

validate

Validates the input tileset.

node ./bin/3d-tiles-validator.js -i ./specs/data/Tileset/tileset.json

Validates a single tile.

node ./bin/3d-tiles-validator.js -i ./specs/data/Tileset/tile.b3dm
Flag Description Required
-i, --input Tileset JSON or individual tile. Yes

Build Instructions

Run the tests:

npm run test

To run ESLint on the entire codebase, run:

npm run eslint

To run ESLint automatically when a file is saved, run the following and leave it open in a console window:

npm run eslint-watch

Running Test Coverage

Coverage uses istanbul. Run:

npm run coverage

For complete coverage details, open coverage/lcov-report/index.html.

The tests and coverage covers the Node.js module; it does not cover the command-line interface.

Generating Documentation

To generate the documentation:

npm run jsdoc

The documentation will be placed in the doc folder.