项目作者: wildpeaks

项目描述 :
PROTO RoundedRectangle
高级语言:
项目地址: git://github.com/wildpeaks/proto-roundedrectangle.git
创建时间: 2017-11-29T14:47:02Z
项目社区:https://github.com/wildpeaks/proto-roundedrectangle

开源协议:MIT License

下载


RoundedRectangle

VRML PROTO (based on IndexedFaceSet) that generates a rounded rectangle geometry.

  1. EXTERNPROTO RoundedRectangle [
  2. exposedField SFVec2f size
  3. exposedField SFFloat radius
  4. field SFBool solid
  5. ] "proto.RoundedRectangle.wrl#RoundedRectangle"

Property 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:

  • 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