IScene3DSphere.Value

Syntax

Value: Array;

Description

The Value property determines coordinates of a sphere (a point).

Example

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

Sub Chart3D;
Var
    s : IScene3D;
    sphere: IScene3DSphere;
    a : array [0..2Of Double;
Begin
    s.DisplayedObjects.Spheres.Count := 1;
    sphere := s.DisplayedObjects.Spheres.Item(0);
    sphere.R := 0.1;
    sphere.Color := New GxColor.CreateRGB(255,0,0);
    a[0] := 0.1;
    a[1] := 0.2;
    a[2] := 0.3;
    sphere.Value := a;
    s.Refresh;
End Sub Chart3D;

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

See also:

IScene3DSphere