Socket
Book a DemoInstallSign in
Socket

@loaders.gl/3d-tiles

Package Overview
Dependencies
Maintainers
9
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/3d-tiles

3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.

4.0.0-beta.1
Source
npmnpm
Version published
Weekly downloads
192K
2.62%
Maintainers
9
Weekly downloads
 
Created

What is @loaders.gl/3d-tiles?

@loaders.gl/3d-tiles is a module within the loaders.gl framework that provides support for loading and parsing 3D Tiles, a format for streaming massive heterogeneous 3D geospatial datasets. It is designed to handle large-scale 3D models, point clouds, and other geospatial data efficiently.

What are @loaders.gl/3d-tiles's main functionalities?

Loading 3D Tiles

This feature allows you to load 3D Tiles from a given URL. The code sample demonstrates how to use the `load` function from `@loaders.gl/core` along with the `Tiles3DLoader` to load a tileset and log it to the console.

const { load } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');

async function load3DTiles(url) {
  const tileset = await load(url, Tiles3DLoader);
  console.log(tileset);
}

load3DTiles('https://example.com/tileset.json');

Parsing 3D Tiles

This feature allows you to parse 3D Tiles data from a binary buffer. The code sample demonstrates how to use the `parse` function from `@loaders.gl/core` along with the `Tiles3DLoader` to parse the data and log the resulting tileset to the console.

const { parse } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');

async function parse3DTiles(data) {
  const tileset = await parse(data, Tiles3DLoader);
  console.log(tileset);
}

// Assuming `data` is a binary buffer containing 3D Tiles data
parse3DTiles(data);

Handling Point Clouds

This feature allows you to load point clouds that are part of a 3D Tileset. The code sample demonstrates how to use the `load` function from `@loaders.gl/core` along with the `Tiles3DLoader` to load a point cloud and log it to the console.

const { load } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');

async function loadPointCloud(url) {
  const pointCloud = await load(url, Tiles3DLoader);
  console.log(pointCloud);
}

loadPointCloud('https://example.com/pointcloud.json');

Other packages similar to @loaders.gl/3d-tiles

Keywords

webgl

FAQs

Package last updated on 02 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.