PROTO Arc
VRML PROTO (based on IndexedFaceSet
) that generates part of a flat circle (e.g. for pie charts),
similar to PROTO ArcLine.
EXTERNPROTO Arc [
exposedField SFFloat fromAngle
exposedField SFFloat toAngle
exposedField SFFloat radius
exposedField SFFloat tesselation
field SFBool solid
] "proto.Arc.wrl#Arc"
fromAngle
Start angle (in radians).
Definition:
exposedField
SFFloat
0
toAngle
End angle (in radians).
If toAngle > fromAngle
, the mesh is generated clockwise, otherwise anti-clockwise.
Definition:
exposedField
SFFloat
6.28318
radius
Radius of the circle.
Definition:
exposedField
SFFloat
1
tesselation
Intermediary steps on the curve.
In short, higher tesselation = rounder shape = more vertices.
Definition:
exposedField
SFFloat
16
solid
Like IndexedFaceSet.solid
, specifies if the geometry is two-sided (solid FALSE
) or one-sided (solid TRUE
).
Definition:
field
SFBool
FALSE