FMX.Types3D.TMeshData.TriangleIndices
Delphi
property TriangleIndices: string read GetTriangleIndices write SetTriangleIndices stored False;
C++
__property System::UnicodeString TriangleIndices = {read=GetTriangleIndices, write=SetTriangleIndices, stored=false};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TMeshData |
Description
Specifies the coordinates of the triangles for a 3D triangle mesh.
The coordinates are given as a string and should respect the following format:
var
MeshData: TMeshData;
begin
MeshData := TMeshData.Create;
MeshData.TriangleIndices := '1, 1, 1, 0, 1, 1, 0, 0, 0'; { only one triangle }
MeshData.TriangleIndices := '1, 1, 1, 0, 1, 1, 0, 0, 0, -1, -1, -1, 0, -1, -1, 0, 0, 0'; { two triangles }
{ ... and so on }
A separator token must be either comma (,
) or blank space. So the following statements are equivalent:
MeshData.TriangleIndices := '1, 1, 1, 0, 1, 1, 0, 0, 0';
MeshData.TriangleIndices := '1 1 1 0 1 1 0 0 0';
MeshData.TriangleIndices := '1 1 1, 0 1 1, 0 0 0';
MeshData.TriangleIndices := '1, 1, 1 0, 1, 1 0, 0, 0';