IScene3DSpheres.Item

Syntax

Item(Index: Integer): IScene3DSphere;

Parameters

Index - index of a sphere (point).

Description

The Item property returns a sphere from the collection by the specified index.

Example

This example assumes that there is the S object of the IScene3D type.

Sub Chart3D;
Var
    s : IScene3D;
    sphere: IScene3DSphere;
Begin
    s := Chart3DBox1.Scene;
    s.DisplayedObjects.Spheres.Count := 1;
    sphere := s.DisplayedObjects.Spheres.Item(0);
    sphere.R := 0.1;
    sphere.Color := New GxColor.CreateRGB(255,0,0);
End Sub Chart3D;

After executing the example, the scene displays a sphere (point) with the specified radius.

See also:

IScene3DSpheres