aframe-stl-model

0.1.2 • Public • Published

aframe-stl-model

Version

A STL files component for A-Frame. (a fork of darkwave/aframe-stl-model-component)

For A-Frame.

API

Property Description Default Value
src a-asset-item ref

Installation

Install via npm:

npm install aframe-stl-model

Then require and use.

import 'aframe';
require('aframe-stl-model');
<a-scene>
    <a-assets>
        <a-asset-item response-type="arraybuffer" id="house" src="/house.stl"></a-asset-item>
    </a-assets>
         
    <a-entity stl-model="src: #house" scale="0.02 0.02 0.02" material="color: #f0f; roughness: 1; metalness: 0"></a-entity>
</a-scene>

Package Sidebar

Install

npm i aframe-stl-model

Weekly Downloads

1

Version

0.1.2

License

GPL-3.0

Unpacked Size

78.4 kB

Total Files

18

Last publish

Collaborators

  • jaumesegarra