Class TRationalBezierCurve

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TRationalBezierCurve = class(TControlPointsCurve)

Description

Warning: this symbol is deprecated: Rendering of TRationalBezierCurve is not portable to OpenGLES (that is: Android and iOS) and not very efficient. Also, this is usually not very useful curve for game purposes, you usually want to use cubic Bezier (CubicBezier3D) or piecewise cubic Bezier (TPiecewiseCubicBezier) instead. For portable and fast general curves use X3D NURBS nodes (wrapped in a TCastleScene) instead.

Rational Bezier curve (Bezier curve with weights). Note: for Bezier Curve ControlPoints.Count MAY be 1. (For TControlPointsCurve it must be >= 2)

Hierarchy

Overview

Fields

Public Weights: TFloatList;

Methods

Protected procedure LoadFromElement(const E: TDOMElement); override;
Protected procedure SaveToStream(const Stream: TStream); override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure UpdateControlPoints; override;
Public function Point(const t: Float): TVector3Single; override;

Description

Fields

Public Weights: TFloatList;

Curve weights. Must always be Weights.Count = ControlPoints.Count. After changing Weights you also have to call UpdateControlPoints.

Methods

Protected procedure LoadFromElement(const E: TDOMElement); override;
 
Protected procedure SaveToStream(const Stream: TStream); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure UpdateControlPoints; override;
 
Public function Point(const t: Float): TVector3Single; override;
 

Generated by PasDoc 0.14.0.