Skip to content

jaumesegarra/aframe-stl-model

 
 

Repository files navigation

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>

About

A STL files component for A-Frame.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.4%
  • HTML 15.6%