FMX.Types3D.TContextHelper.FillPolygon
Delphi
procedure FillPolygon(const Center, Size: TPoint3D; const Rect: TRectF; const Points: TPolygon; const Material: TMaterial; const Opacity: Single; Front: Boolean = True; Back: Boolean = True; Left: Boolean = True);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure | public | FMX.Types3D.pas | FMX.Types3D | TContextHelper |
Description
Fills a polygon defined by a list of points with a specified material on a local coordinates system in the current 3D context.
Center
specifies the center point of the filled object.
Size
specifies the size of the filled object.
Rect
specifies the local coordinates.
Points
defines the polygon to be filled and extruded.
Material
specifies the material to fill the polygon.
Opacity
specifies the level of transparency of the filled object.
Front
specifies if the front side of the filled object is drawn.
Back
specifies if the back side of the filled object is drawn.
Left
specifies if the left side of the filled object is drawn.
FillPolygon draws the polygon on 2D plane and then extrudes it to build a 3D object.