FMX.Types3D.TMeshData.Points

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Points: string read GetPoint3Ds write SetPoint3Ds stored False;

C++

__property System::UnicodeString Points = {read=GetPoint3Ds, write=SetPoint3Ds, 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 3D points that build this mesh.

The coordinates are given as a string and should respect the following format:

var
  MeshData: TMeshData;

begin
  MeshData := TMeshData.Create;

  MeshData.Points := '1, 1, 1'; { only one 3D point (1, 1, 1) }
  MeshData.Points := '1, 1, 1, 0, 1, 1'; { two 3D points (1, 1, 1) and (0, 1, 1) }
  { ... and so on }

A separator token must be either comma (,) or blank space. So the following statements are equivalent:

  MeshData.Points := '1, 1, 1, 0, 1, 1'; { two 3D points (1, 1, 1) and (0, 1, 1) }
  MeshData.Points := '1  1  1  0  1  1'; { two 3D points (1, 1, 1) and (0, 1, 1) }
  MeshData.Points := '1  1  1, 0  1  1'; { two 3D points (1, 1, 1) and (0, 1, 1) }
  MeshData.Points := '1, 1, 1  0, 1, 1'; { two 3D points (1, 1, 1) and (0, 1, 1) }

See Also