Fill

The Fill accessor operates on two polygon objects contained in a prototype: a filled polygon and a filler polygon. The value of the attribute represents a fill level. When the attribute is changed, the points of the filler polygon are modified to fill the polygon to the specified level. An angle can be specified to fill the polygon in any direction.

Parameters

  • Filled Graphic Node: Must be an IlvPolygon graphic node.

  • Filler Graphic Node: Must be an IlvPolygon graphic node.

  • Angle: A float that indicates the angle at which the fill will be done.

Example

The following is a bottle prototype that contains two polygons: the glass and the wine. A Fill accessor is used to define the level property. The filled polygon is the glass and the filler polygon is the wine.