FMX.Types3D.TMeshData.Normals

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Normals: string read GetNormals write SetNormals stored False;

C++

__property System::UnicodeString Normals = {read=GetNormals, write=SetNormals, 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 normal 3D vectors at the location of the vertices.

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

var
  MeshData: TMeshData;

begin
  MeshData := TMeshData.Create;

  MeshData.Normals := '1, 1, 1'; { only one normal (1, 1, 1) }
  MeshData.Normals := '1, 1, 1, 0, 1, 1'; { two normals (1, 1, 1) and (0, 1, 1) }
  { ... and so on }

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

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

See Also