New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arcoda3d

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcoda3d

A TypeScript library designed to simplify the use of various 3D engines like Babylon.js and Three.js by abstracting their implementations into a unified API. This library enables effortless 3D model visualization and provides a suite of tools for advanced

  • 0.0.8-rc1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

3D Visualization Library

A TypeScript library designed to simplify the use of various 3D engines like Babylon.js and Three.js by abstracting their implementations into a unified API. This library enables effortless 3D model visualization and provides a suite of tools for advanced interactions, such as measurement tools for precise model analysis.


Features

  • Engine Abstraction: Switch between 3D engines without changing your code.
  • Model Visualization: Import and display 3D models in common formats like .glb and .gltf.
  • Measurement Tools: Take precise measurements on 3D models.

Installation

You can integrate the library into your project in one of the following ways:

Install the library using npm:

npm install am3d

2. Using the UMD file

If your project does not use a package manager, you can download the .umd file and include it in your solution. Then, reference the exports directly in your code:

<script src="path/to/am3d.umd.js"></script>

Getting Started

Here’s how to use the library to visualize a 3D model and interact with it.

Basic Usage

import { BabylonEngine } from 'am3d';

const engine = new am3d.BabylonEngine(); // or new am3d.ThreejsEngine

of(null)
  .pipe(
    switchMap(() => enginesSetup$()), // Engine initialization
  )
  .subscribe();

// Engine initialization
function enginesSetup$() {
  let containerId = 'your-container-id';
  let webGLRenderingContext = undefined; // if unified rendering context must be unique, set the very same instance

  const api = {
    GETAcquisitionInfoEndpoint: 'your-acquisition-info-endpoint',
    GETAcquisitionDataEndpoint: 'your-acquisition-data-endpoint',
  };

  const properties = {
    containerId,
    webGLRenderingContext,
  };

  const setup = {
    properties,
    api,
  };

  return engine.setup$(setup);
}

API Documentation

See 'insert-link-when-compodoc-available' for technical documentation


Supported Engines

  • Babylon.js: https://www.babylonjs.com/
  • Three.js: https://threejs.org/

Supported Formats

  • .glb
  • .gltf

License

This project is licensed under the MIT License. See the LICENSE file for details.


FAQs

Package last updated on 29 Jan 2025

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