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
Clone this repo and install Node.js. From the validator
directory, run:
npm install
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 |
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
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.
To generate the documentation:
npm run jsdoc
The documentation will be placed in the doc
folder.