aframe-stl-exporter-component

0.0.4 • Public • Published

aframe-stl-exporter-component

Version License

A STL Exporter component for A-Frame.

API

Property Description Default Value
verbose Log the STL output to the console false

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script> 
  <script src="https://unpkg.com/aframe-stl-exporter-component@0.0.3/dist/aframe-stl-exporter-component.min.js"></script> 
</head>
 
<body>
  <a-scene>
    <a-entity stl-exporter></a-entity>
  </a-scene>
</body>

Usage on your component:

sceneEl.systems['stl-exporter'].export(input, options);

The function accepts severals different input values:

  • None (export the whole scene)
  • One entity

More information about the component and its options could be found on the three.js STLExporter

npm

Install via npm:

npm install aframe-stl-exporter-component

Then require and use.

require('aframe');
require('aframe-stl-exporter-component');

Package Sidebar

Install

npm i aframe-stl-exporter-component

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

3.83 MB

Total Files

15

Last publish

Collaborators

  • hassadee