TGorillaCapsule
Defines a simple capsule component.
Remarks
The Gorilla3D capsule enables static buffering of vertices and indices. This allows also large number of vertices of capsules.This component uses by default static buffering to push vertices only once to GPU.
Procedural mesh computation based on: https://github.com/Syomus/ProceduralToolkit/blob/02e59f92fb38b69d873c2080906d2f83b3539d08/Scripts/MeshDraftPrimitives.cs#L670-L784
Ancestors
Members
Fields
Methods
- public constructor Create ( AOwner : TComponent ) ;
- protected procedure SetRadius ( const AValue : Single ) ; virtual;
- protected procedure SetSegments ( const AValue : Integer ) ; virtual;
- protected procedure SetRings ( const AValue : Integer ) ; virtual;
- protected function PointOnSpheroid
(
ARadius :
Single; AHeight :
Single; AHorizontalAngle :
Single; AVerticalAngle :
Single
)
: TPoint3D
;
class;
Returns a point on a spheroid in geographic coordinate system
Parameters
- ARadius : Single - Spheroid radiusSpheroid heightHorizontal angle in degrees [0, 360]Vertical angle in degrees [-90, 90]
- AHeight : Single - Spheroid radiusSpheroid heightHorizontal angle in degrees [0, 360]Vertical angle in degrees [-90, 90]
- AHorizontalAngle : Single - Spheroid radiusSpheroid heightHorizontal angle in degrees [0, 360]Vertical angle in degrees [-90, 90]
- AVerticalAngle : Single - Spheroid radiusSpheroid heightHorizontal angle in degrees [0, 360]Vertical angle in degrees [-90, 90]
- protected procedure RebuildMesh
(
)
;
Rebuilds the sphere mesh depending on the configured SubdivisionsAxes and SubdivisionsHeight values.
- protected procedure Resize3D ( ) ; override;
- protected procedure CreateStaticBuffer
(
)
;
Creates a new static buffer for this sphere mesh in the local mesh definition.
Properties
- published Radius : Single
- published Segments : Integer
- published Rings : Integer
- published MaterialSource : TMaterialSource
- published Cursor : TCursor
- published DragMode : TDragMode
- published Position : TPosition3D
- published Scale : TPosition3D
- published RotationAngle : TPosition3D
- published Locked : Boolean
- published Opacity : Single
- published Projection : TProjection
- published HitTest : Boolean
- published VisibleContextMenu : Boolean
- published TwoSide : Boolean
- published Visible : Boolean
- published ZWrite : Boolean