Class TCastleCone

Unit

Declaration

type TCastleCone = class(TCastleAbstractPrimitive)

Description

Cone with configurable size, position and material.

Source: src/scene/castlescene_cone.inc (line 21).

Hierarchy

Overview

Methods

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

Properties

Published property BottomRadius: Single read FBottomRadius write SetBottomRadius 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 Slices: Cardinal read FSlices write SetSlices default 0;
Published property Stacks: Cardinal read FStacks write SetStacks default 0;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: src/scene/castlescene_cone.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: src/scene/castlescene_cone.inc (line 37).

Properties

Published property BottomRadius: Single read FBottomRadius write SetBottomRadius default 1;

Cone bottom radius.

Source: src/scene/castlescene_cone.inc (line 40).

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

Cone height.

Source: src/scene/castlescene_cone.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: src/scene/castlescene_cone.inc (line 46).

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

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

Source: src/scene/castlescene_cone.inc (line 51).

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

Display sides of the cone. When this is False, and Bottom is True, then cone bottom is effectively displayed as just a disk.

Source: src/scene/castlescene_cone.inc (line 56).

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

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

Slices divide the objects like slices of a pizza.

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

Source: src/scene/castlescene_cone.inc (line 67).

Published property Stacks: Cardinal read FStacks write SetStacks default 0;

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

Stacks divide the objects like stacks of a tower.

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

Source: src/scene/castlescene_cone.inc (line 78).


Generated by PasDoc 0.17.0.snapshot.