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

aframe-extrude-and-lathe

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

aframe-extrude-and-lathe

extrude and lathe components for aframevr

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

aframe extrude and lathe components

Components for A-Frame. Based on aframe-component-boilerplate.

This module offers lathe and extrude components.

TODO

  • lathe
    • close ends option (for angles < 360)
    • choose lathe main axis
  • extrude
    • expose bevel options
    • extrude along path?
  • no tests yet
  • will probably split the repos in two once both components work properly

Development

npm install
npm start
cd examples
npm install
npm run build

Visit http://127.0.0.1:5566/examples/basic/index.html

Usage

Install.

npm install aframe-extrude-and-lathe

Register.

var aframeCore = require('aframe-core');
var eAndL = require('aframe-extrude-and-lathe');
aframeCore.registerComponent('extrude', eAndL.extrudeComponent);
aframeCore.registerComponent('lathe',   eAndL.latheComponent);

Use.

<a-scene>
    <a-entity
        extrude="path:'m0.1,0.1 l-0.2,0 l0,-0.2 l0.2,0 l0,0.2 z'; amount:0.05"
        position="1 1 2"
        material="color:blue"></a-entity>

    <a-entity
        lathe="path:'m0.1,-0.3 l0.3,0 l0,0.3 l-0.3,0 z'; angle:360; steps:32"
        position="-1 1 2"
        rotation="90 0 0"
        material="color:green; side:double"></a-entity>
</a-scene>
extrude
PropertyDescriptionDefault Value
pathdefine profile shape via syntax akin to SVG path's d attributeempty. must be defined
amountextension of extrusion1

lathe

PropertyDescriptionDefault Value
pathdefine profile shape via syntax akin to SVG path's d attributeempty. must be defined
startAnglestart angle for the revolution0
anglerevolution angle (0>angle>360)360
stepsnumber of steps along the angle16

Keywords

FAQs

Package last updated on 03 Feb 2019

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