C4 Engine
C4 Engine API Documentation

OcclusionRegion::PolygonOccluded

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

bool PolygonOccluded(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 PolygonOccluded function determines whether the polygon specified by the vertexCount and vertex parameters is occluded by a region. If all the vertex positions fall on the positive side of all the planes bounding the region, then the return value is true. Otherwise, the return value is false.
See Also

OcclusionRegion::BoxOccluded

OcclusionRegion::QuadOccluded

OcclusionRegion::SphereOccluded

OcclusionRegion::EllipsoidOccluded

OcclusionRegion::CylinderOccluded