PROTO 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"
size
Width & height of the inner area of the rounded rectangle.
You could use MonospaceText.bboxSize
to fit a tooltip around an arbitrary text.
Definition:
exposedField
SFVec3f
2 2
radius
Radius of the rounded border of the rectangle.
Definition:
exposedField
SFVec3f
1
solid
Like IndexedFaceSet.solid
, renders both sides (FALSE
) or only the front side (TRUE
).
Definition:
field
SFBool
TRUE