| Description | Hierarchy | Fields | Methods | Properties |
type TGeometryCreator = class(TReferenceCounted)
Helper class for creating geometry on the fly.
You can get an instance of this class through TSceneManager.GetGeometryCreator().
![]() |
function CreateArrowMesh(TesselationCylinder: LongWord=4; TesselationCone: LongWord=8; Height: Single=1; CylinderHeight: Single=0.6; CylinderWidth: Single = 0.05; ConeWidth: Single= 0.3; CylinderColor: TARGBColor = $ffffffff; ConeColor: TARGBColor = $ffffffff): TMesh; inline; |
![]() |
function CreateConeMesh(Radius, Length: Single; Tesselation: LongWord; TopColor: TARGBColor = $ffffffff; BottomColor: TARGBColor = $ffffffff; Oblique: Single=0): TMesh; inline; |
![]() |
function CreateCubeMesh: TMesh; overload; inline; |
![]() |
function CreateCubeMesh(const Size: TVector3D): TMesh; overload; inline; |
![]() |
function CreateCylinderMesh(Radius, Length: Single; Tesselation: LongWord; Color: TARGBColor = $ffffffff; CloseTop: Boolean = True; Oblique: Single=0): TMesh; inline; |
![]() |
function CreateHillPlaneMesh(const TileSize: TDimension; const TileCount: TSize; Material: PMaterial; HillHeight: Single; const HillCount, TextureRepeatCount: TDimension): TMesh; inline; |
![]() |
function CreatePlaneMesh(const TileSize: TDimension; const TileCount: TSize; Material: PMaterial; const TextureRepeatCount: TDimension): TMesh; inline; |
![]() |
function CreateSphereMesh(Radius: Single = 0.5; PolyCountX: LongWord = 16; PolyCountY: LongWord = 16): TMesh; inline; |
![]() |
function CreateTerrainMesh(Texture, HeightMap: TImage; const StretchSize: TDimension; MaxHeight: Single; Driver: TVideoDriver; const DefaultVertexBlockSize: TSize; DebugBorders: Boolean = False): TMesh; inline; |
![]() |
function CreateVolumeLightMesh(SubdivideU: LongWord=32; SubdivideV: LongWord=32; FootColor: TARGBColor = $ffffffff; TailColor: TARGBColor = $ffffffff; LPDistance: Single=0.8): TMesh; overload; inline; |
![]() |
function CreateVolumeLightMesh(SubdivideU, SubdivideV: LongWord; FootColor, TailColor: TARGBColor; LPDistance: Single; LightDim: TVector3D): TMesh; overload; inline; |
![]() |
function CreateArrowMesh(TesselationCylinder: LongWord=4; TesselationCone: LongWord=8; Height: Single=1; CylinderHeight: Single=0.6; CylinderWidth: Single = 0.05; ConeWidth: Single= 0.3; CylinderColor: TARGBColor = $ffffffff; ConeColor: TARGBColor = $ffffffff): TMesh; inline; |
|
Creates an arrow mesh, composed of a cylinder and a cone. Parameters
ReturnsThe generated Mesh. | |
![]() |
function CreateConeMesh(Radius, Length: Single; Tesselation: LongWord; TopColor: TARGBColor = $ffffffff; BottomColor: TARGBColor = $ffffffff; Oblique: Single=0): TMesh; inline; |
|
Creates a cone mesh. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreateCubeMesh: TMesh; overload; inline; |
|
Overloaded for default parameters. | |
![]() |
function CreateCubeMesh(const Size: TVector3D): TMesh; overload; inline; |
|
Creates a simple cube mesh. ReturnsGenerated mesh. | |
![]() |
function CreateCylinderMesh(Radius, Length: Single; Tesselation: LongWord; Color: TARGBColor = $ffffffff; CloseTop: Boolean = True; Oblique: Single=0): TMesh; inline; |
|
Creates a cylinder mesh. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreateHillPlaneMesh(const TileSize: TDimension; const TileCount: TSize; Material: PMaterial; HillHeight: Single; const HillCount, TextureRepeatCount: TDimension): TMesh; inline; |
|
Creates a pseudo-random mesh representing a hilly terrain. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreatePlaneMesh(const TileSize: TDimension; const TileCount: TSize; Material: PMaterial; const TextureRepeatCount: TDimension): TMesh; inline; |
|
Creates a simple rectangular textured plane mesh. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreateSphereMesh(Radius: Single = 0.5; PolyCountX: LongWord = 16; PolyCountY: LongWord = 16): TMesh; inline; |
|
Creates a sphere mesh. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreateTerrainMesh(Texture, HeightMap: TImage; const StretchSize: TDimension; MaxHeight: Single; Driver: TVideoDriver; const DefaultVertexBlockSize: TSize; DebugBorders: Boolean = False): TMesh; inline; |
|
Creates a terrain mesh from an image representing a heightfield. Parameters
ReturnsThe Generated mesh. | |
![]() |
function CreateVolumeLightMesh(SubdivideU: LongWord=32; SubdivideV: LongWord=32; FootColor: TARGBColor = $ffffffff; TailColor: TARGBColor = $ffffffff; LPDistance: Single=0.8): TMesh; overload; inline; |
|
Overloaded for default parameters. | |
![]() |
function CreateVolumeLightMesh(SubdivideU, SubdivideV: LongWord; FootColor, TailColor: TARGBColor; LPDistance: Single; LightDim: TVector3D): TMesh; overload; inline; |
|
Creates a volume light mesh. Parameters
ReturnsThe Generated mesh. | |