New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gltf2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gltf2

[![Build Status](https://travis-ci.org/urish/gltf2.png?branch=master)](https://travis-ci.org/urish/gltf2)

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

gltf2 utils

Build Status

Utils for processing glTF 2.0 3D model files.

Usage example


import { GLTFReader } from 'gltf2';

const model = new GLTFReader('input.gltf');

if (model.gltf.textures) {
  console.log('Texture count:', model.gltf.textures.length);
}

// This will remove unused data from glTF buffers
const savedSpace = model.compactBuffers();
console.log('saved', savedSpace, 'bytes');

model.save('output.gltf');

FAQs

Package last updated on 30 Dec 2017

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