项目作者: wildpeaks

项目描述 :
PROTO Arc
高级语言:
项目地址: git://github.com/wildpeaks/proto-arc.git
创建时间: 2018-02-02T10:22:42Z
项目社区:https://github.com/wildpeaks/proto-arc

开源协议:MIT License

下载


Arc

VRML PROTO (based on IndexedFaceSet) that generates part of a flat circle (e.g. for pie charts),
similar to PROTO ArcLine.

  1. EXTERNPROTO Arc [
  2. exposedField SFFloat fromAngle
  3. exposedField SFFloat toAngle
  4. exposedField SFFloat radius
  5. exposedField SFFloat tesselation
  6. field SFBool solid
  7. ] "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