C4 Engine
C4 Engine API Documentation

VisibilityRegion::PolygonVisible

Defined in:  C4Regions.h
Determines whether polygon is visible in a region.
Prototype

bool PolygonVisible(int32 vertexCount, const Point3D *vertex) const;

Parameters
vertexCount The number of vertices in the polygon.
vertex A pointer to an array containing the polygon's world-space vertex positions.
Description
The PolygonVisible function determines whether the polygon specified by the vertexCount and vertex parameters is visible inside a region. If all of the vertex positions fall completely on the negative side of any single plane bounding the region, then the return value is false. Otherwise, the return value is true.
See Also

VisibilityRegion::BoxVisible

VisibilityRegion::QuadVisible

VisibilityRegion::SphereVisible

VisibilityRegion::EllipsoidVisible

VisibilityRegion::CylinderVisible