Class TModel3D

Unit

Declaration

type TModel3D = class(TObject)

Description

Base for models.

TModel3D implements an abstract class to define how objects will use models.

An instance of TModel3D is never created directly, instead a descendant class such as TPolygon should be created. This is because TModel3D is an abstract class which does not implement all methods; TModel3D also doesn't store any information about the model, this is the functionality introduced in descendants.

See also
TObject3D.Model
Reference to the model.
a3dge.Model3D
a3dge.Prims3D

Hierarchy

  • TObject
  • TModel3D

Overview

Methods

Public CONSTRUCTOR Create; VIRTUAL;
Public FUNCTION BoundingSphereRadius: SINGLE; VIRTUAL;
Public function BoundingBox: TBox; virtual;
Public PROCEDURE Render (CONST aOwner: TObject3D); VIRTUAL; ABSTRACT;

Properties

Public property Name: String read fName write SetName;
Public property Transparent: Boolean read fIsTransparent write fIsTransparent;

Description

Methods

Public CONSTRUCTOR Create; VIRTUAL;

To force to override the constructor.

Public FUNCTION BoundingSphereRadius: SINGLE; VIRTUAL;

Calculates the bounding sphere radius of the model.

By default it returns zero.

See also
TObject3D.Radius
Bounding sphere radius.
TModel3D.BoundingBox
Returns the bounding box limits.
Public function BoundingBox: TBox; virtual;

Returns the bounding box limits.

By default it returns zero in all parameters.

See also
TObject3D.BoundingBox
The bounding box.
TModel3D.BoundingSphereRadius
Calculates the bounding sphere radius of the model.
Public PROCEDURE Render (CONST aOwner: TObject3D); VIRTUAL; ABSTRACT;

Renders the object.

Properties

Public property Name: String read fName write SetName;

Model name.

Names are converted to lower-case.

Public property Transparent: Boolean read fIsTransparent write fIsTransparent;

Has model transparent or translucent parts.

Default is False.


Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.