Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wildpeaks/proto-roundedrectangle
PROTO RoundedRectangle
https://github.com/wildpeaks/proto-roundedrectangle
vrml
Last synced: 23 days ago
JSON representation
PROTO RoundedRectangle
- Host: GitHub
- URL: https://github.com/wildpeaks/proto-roundedrectangle
- Owner: wildpeaks
- License: mit
- Created: 2017-11-29T14:47:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T10:15:25.000Z (about 7 years ago)
- Last Synced: 2024-11-06T03:11:50.642Z (2 months ago)
- Topics: vrml
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RoundedRectangle
VRML PROTO (based on `IndexedFaceSet`) that **generates a rounded rectangle** geometry.
EXTERNPROTO RoundedRectangle [
exposedField SFVec2f size
exposedField SFFloat radius
field SFBool solid
] "proto.RoundedRectangle.wrl#RoundedRectangle"-------------------------------------------------------------------------------
## Property `size`
**Width & height** of the inner area of the rounded rectangle.
You could use [MonospaceText.bboxSize](https://github.com/wildpeaks/proto-monospacetext#event-bboxsize)
to fit a tooltip around an arbitrary text.Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `2 2`-------------------------------------------------------------------------------
## Property `radius`
**Radius** of the rounded border of the rectangle.
Definition:
- Field Type: `exposedField`
- Data Type: `SFVec3f`
- Default Value: `1`-------------------------------------------------------------------------------
## Property `solid`
Like `IndexedFaceSet.solid`, renders both sides (`FALSE`) or only the front side (`TRUE`).
Definition:
- Field Type: `field`
- Data Type: `SFBool`
- Default Value: `TRUE`-------------------------------------------------------------------------------