Class TCurve
Unit
Declaration
type TCurve = class(TObject)
Description
3D curve, a set of points defined by a continuous function Point for arguments within [TBegin, TEnd].
Hierarchy
- TObject
- TCurve
Overview
Fields
nested const DefaultSegments = 32; |
Methods
procedure LoadFromElement(const E: TDOMElement); virtual; |
|
procedure SaveToStream(const Stream: TStream); virtual; |
|
constructor Create; |
|
function Point(const t: Float): TVector3; virtual; abstract; |
|
function Point2D(const t: Float): TVector2; |
|
function PointOfSegment(const i, Segments: Cardinal): TVector3; |
|
class function LoadFromFile(const URL: string): TCurve; |
|
function BoundingBox: TBox3D; virtual; abstract; |
|
function GeometryNode(const Segments: Cardinal = DefaultSegments): TAbstractGeometryNode; |
Properties
property TBegin: Single read FTBegin write FTBegin default 0; |
|
property TEnd: Single read FTEnd write FTEnd default 1; |
Description
Fields
nested const DefaultSegments = 32; |
|
Methods
procedure LoadFromElement(const E: TDOMElement); virtual; |
|
procedure SaveToStream(const Stream: TStream); virtual; |
|
constructor Create; |
|
function Point(const t: Float): TVector3; virtual; abstract; |
|
Curve function, for each parameter value determine the 3D point. This determines the actual shape of the curve. This is the simplest approach to calculate points on a curve. |
function Point2D(const t: Float): TVector2; |
|
function PointOfSegment(const i, Segments: Cardinal): TVector3; |
|
Curve function to work with rendered line segments begin/end points. This is simply a more specialized version of Point, it scales the argument such that you get Point(TBegin) for I = 0 and you get Point(TEnd) for I = Segments. |
class function LoadFromFile(const URL: string): TCurve; |
|
Load the first curve defined in given XML file. Hint: use https://castle-engine.io/curves_tool to design curves visually. |
function BoundingBox: TBox3D; virtual; abstract; |
|
function GeometryNode(const Segments: Cardinal = DefaultSegments): TAbstractGeometryNode; |
|
Represent this curve as an X3D geometry node, that you can use to visualize this. |
Properties
property TBegin: Single read FTBegin write FTBegin default 0; |
|
The valid range of curve function argument. Must be |
property TEnd: Single read FTEnd write FTEnd default 1; |
|
Generated by PasDoc 0.16.0.