C4 Engine
C4 Engine API Documentation

PortalObject::GetVertexArray

Defined in:  C4Portals.h
Returns the object-space vertex array defining the boundary of the portal.
Prototype

Point3D *GetVertexArray(void);

const Point3D *GetVertexArray(voidconst;

Description
The GetVertexArray function returns the object-space vertex array defining the boundary of the portal. The number of vertices in the array is returned by the PortalObject::GetVertexCount function.

To specify the vertex array for a portal, the PortalObject::SetVertexCount function should be called to set the number of vertices, and then the positions should be stored in the array returned by the GetVertexArray function. All of the portal's vertices should lie in the x-y plane; that is, each z coordinate should be 0.0.
See Also

PortalObject::GetVertexCount

PortalObject::SetVertexCount