Record TPolygon

Hierarchy
Methods
Properties

Unit

Declaration

type TPolygon = record

Description

Defines a polygon.

The way this description is used depends the specific implementation of the model.

Overview

Fields

Vertices: TIntegerDynArray;
VertexNormals: TIntegerDynArray;
TexCoords: TIntegerDynArray;
PlaneNormal: TVector3D;
UsePlaneNormal: Boolean;
Material: Integer

Description

Fields

Vertices: TIntegerDynArray;

Polygon vertices.

This list contains the index of each vertex of the polygon.

VertexNormals: TIntegerDynArray;

Vertex normals.

This list contains the index of each vertex normal.

See also
TPolygon.PlaneNormal
Plane normal.
TPolygon.UsePlaneNormal
Use plane normal?

If this is True, then model should use PlaneNormal, otherwise it should use VertexNormals.

TexCoords: TIntegerDynArray;

Texture coordenates.

This list contains the index of each texture UV pair.

PlaneNormal: TVector3D;

Plane normal.

this vector is the plane normal.

See also
TPolygon.VertexNormals
Vertex normals.
TPolygon.UsePlaneNormal
Use plane normal?

If this is True, then model should use PlaneNormal, otherwise it should use VertexNormals.

UsePlaneNormal: Boolean;

Use plane normal?

If this is True, then model should use PlaneNormal, otherwise it should use VertexNormals.

If neither UsePlaneNormal is true nor VertexNormals contains any indes, the model shold render the polygon as if light desn't affect it (i.e. disable lighting and fog).

See also
TPolygon.PlaneNormal
Plane normal.
TPolygon.VertexNormals
Vertex normals.
Material: Integer

Material used by polygon.


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