0.3.1 • Published 1 year ago

aframe-polygon-wireframe v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Overview

A component to display wireframes composed of polygons, rather than triangles.

image-20220816094651445

Schema

PropertyDescriptionDefault
colorThe color to use for the lines of the wireframegrey
opacityThe opacity with which to render the non-hidden parts of the wireframe. This should not be set to a lower value than hiddenOpacity (doing so will trigger a warning, and result in the whole wireframe being rendered with the hiddenOpacity opacity setting).1
hiddenOpacityThe opacity with which to render any hidden parts of the wireframe. Setting this to a non-zero value means that parts of the wireframe that would normally be hidden (i.e. that are behind other objects) are still visible. By setting it to a value lower than opacity allows for a visible difference between the hidden and non-hidden parts of the wireframe, even though both are visible.0
dashedWhether to use dashed lines. If false, solid lines are usedfalse
dashSizeIf dashed lines are used, the length of the dashes relative to the gaps3
gapSizeIf dashed lines are used, the length of the gaps relative to the dashes1
dashScaleIf dashed lines are used, this determines the scale of the dashes / gaps. Whatever units are used for dashSize & gapSize, this is the number of units that will fit into a 1 unit of length (i.e. 1 meter if the entity has default scaling).Larger values for dashScale result in smaller dashes / gaps. With the default values for dashScale, dashSize and gapSize, and default entity scaling, dashes will be 10cm (3 x 100 / 30), and gaps 3.33cm (1 x 100 / 30).30

Installation

Via CDN

<script src="https://cdn.jsdelivr.net/npm/aframe-polygon-wireframe@0.1.0/index.min.js"></script>

Or via npm

npm install aframe-polygon-wireframe

Examples

polygon-wireframe.html

Code

polygon-wireframe

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.0

1 year ago