Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loaders.gl/3d-tiles

Package Overview
Dependencies
Maintainers
9
Versions
321
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.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
decreased by-1.63%
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

FAQs

Package last updated on 01 Feb 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc