Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wildpeaks/proto-arc
PROTO Arc
https://github.com/wildpeaks/proto-arc
vrml
Last synced: 23 days ago
JSON representation
PROTO Arc
- Host: GitHub
- URL: https://github.com/wildpeaks/proto-arc
- Owner: wildpeaks
- License: mit
- Created: 2018-02-02T10:22:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T17:28:02.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T03:11:50.630Z (2 months ago)
- Topics: vrml
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arc
VRML PROTO (based on `IndexedFaceSet`) that generates part of a flat circle (e.g. for **pie charts**),
similar to [PROTO ArcLine](https://github.com/wildpeaks/proto-arcline).EXTERNPROTO Arc [
exposedField SFFloat fromAngle
exposedField SFFloat toAngle
exposedField SFFloat radius
exposedField SFFloat tesselation
field SFBool solid
] "proto.Arc.wrl#Arc"-------------------------------------------------------------------------------
## Property `fromAngle`
**Start angle** (in radians).
Definition:
- Field Type: `exposedField`
- Data Type: `SFFloat`
- Default Value: `0`-------------------------------------------------------------------------------
## Property `toAngle`
**End angle** (in radians).
If `toAngle > fromAngle`, the mesh is generated **clockwise**, otherwise **anti-clockwise**.Definition:
- Field Type: `exposedField`
- Data Type: `SFFloat`
- Default Value: `6.28318`-------------------------------------------------------------------------------
## Property `radius`
**Radius** of the circle.
Definition:
- Field Type: `exposedField`
- Data Type: `SFFloat`
- Default Value: `1`-------------------------------------------------------------------------------
## Property `tesselation`
Intermediary steps on the curve.
In short, **higher tesselation = rounder shape = more vertices**.Definition:
- Field Type: `exposedField`
- Data Type: `SFFloat`
- Default Value: `16`-------------------------------------------------------------------------------
## Property `solid`
Like `IndexedFaceSet.solid`, specifies if the geometry is two-sided (`solid FALSE`) or one-sided (`solid TRUE`).
Definition:
- Field Type: `field`
- Data Type: `SFBool`
- Default Value: `FALSE`-------------------------------------------------------------------------------