Class TControlPointsCurve
Unit
Declaration
type TControlPointsCurve = class(TCurve)
Description
A basic abstract class for curves determined my some set of ControlPoints. Note: it is not defined in this class any correspondence between values of T (argument for Point function) and ControlPoints.
Hierarchy
- TObject
- TCurve
- TControlPointsCurve
Overview
Fields
ControlPoints: TVector3List; |
Methods
procedure LoadFromElement(const E: TDOMElement); override; |
|
procedure SaveToStream(const Stream: TStream); override; |
|
function BoundingBox: TBox3D; override; |
|
procedure UpdateControlPoints; virtual; |
|
constructor Create; |
|
constructor CreateFromEquation(CasScriptCurve: TCasScriptCurve; ControlPointsCount: Cardinal); |
|
destructor Destroy; override; |
|
function ConvexHull: TVector3List; |
Description
Fields
ControlPoints: TVector3List; |
|
This item has no description. |
Methods
procedure LoadFromElement(const E: TDOMElement); override; |
|
This item has no description. |
procedure SaveToStream(const Stream: TStream); override; |
|
This item has no description. |
function BoundingBox: TBox3D; override; |
|
Bounding box of the curve. In this class, it is simply a |
procedure UpdateControlPoints; virtual; |
|
Always after changing ControlPoints or TBegin or TEnd and before calling Point (or anything that uses Point, like BoundingBox) call this method. It recalculates necessary things. ControlPoints.Count must be >= 2. When overriding: always call inherited first. |
constructor Create; |
|
Constructor. |
constructor CreateFromEquation(CasScriptCurve: TCasScriptCurve; ControlPointsCount: Cardinal); |
|
Calculate initial control points by sampling given TCasScriptCurve, with analytical curve equation. TBegin and TEnd are copied from CasScriptCurve. |
destructor Destroy; override; |
|
This item has no description. |
function ConvexHull: TVector3List; |
|
Calculate the convex hull. Caller is responsible for freeing the result. |
Generated by PasDoc 0.16.0-snapshot.