Class TCastleCylinder

Unit

Declaration

type TCastleCylinder = class(TCastleAbstractPrimitive)

Description

Cylinder with configurable size, position and material.

Source: scene/castlescene_cylinder.inc (line 21).

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Published property Radius: Single read FRadius write SetRadius default 1;
Published property Height: Single read FHeight write SetHeight default 2;
Published property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false;
Published property Bottom: Boolean read FBottom write SetBottom default true;
Published property Side: Boolean read FSide write SetSide default true;
Published property Top: Boolean read FTop write SetTop default true;
Published property Slices: Cardinal read FSlices write SetSlices default 0;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: scene/castlescene_cylinder.inc (line 36).

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Source: scene/castlescene_cylinder.inc (line 37).

Properties

Published property Radius: Single read FRadius write SetRadius default 1;

Cylinder radius.

Source: scene/castlescene_cylinder.inc (line 40).

Published property Height: Single read FHeight write SetHeight default 2;

Cylinder height.

Source: scene/castlescene_cylinder.inc (line 43).

Published property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false;

When this is True, the object is visible (and lit) from both sides.

Source: scene/castlescene_cylinder.inc (line 46).

Published property Bottom: Boolean read FBottom write SetBottom default true;

Display bottom of the cylinder. When False, you can see the cylinder interior if looking from the outside (note: turn on DoubleSided to make interior visible).

Source: scene/castlescene_cylinder.inc (line 51).

Published property Side: Boolean read FSide write SetSide default true;

Display side of the cylinder. When False, you can see the cylinder interior if looking from the outside (note: turn on DoubleSided to make interior visible).

Source: scene/castlescene_cylinder.inc (line 56).

Published property Top: Boolean read FTop write SetTop default true;

Display top of the cylinder. When False, you can see the cylinder interior if looking from the outside (note: turn on DoubleSided to make interior visible).

Source: scene/castlescene_cylinder.inc (line 61).

Published property Slices: Cardinal read FSlices write SetSlices default 0;

How many "slices" to use to approximate the cylinder. The cylinder is rendered using polygons (triangles and quads) that approximate the cylinder shape. The more slices, the more the cylinder will look like a cylinder.

Slices divide the objects like slices of a pizza.

The default value of 0 means to follow global variable DefaultTriangulationSlices.

Source: scene/castlescene_cylinder.inc (line 72).


Generated by PasDoc 0.17.0.snapshot.