Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PolygonClass Class Reference

Public Types

enum  { BPT_POLY_MAX_VERTS = 24 }
 

Public Member Functions

 PolygonClass (void)
 
 PolygonClass (const PolygonClass &that)
 
 PolygonClass (const VertexClass *points, int num)
 
PolygonClassoperator= (const PolygonClass &that)
 
const VertexClassoperator[] (int i) const
 
VertexClassoperator[] (int i)
 
int Get_Vertex_Count (void) const
 
int Get_Material_ID (void) const
 
const PlaneClassGet_Plane (void) const
 
void Set_Vertex_Count (int count)
 
void Set_Material_Id (int id)
 
void Set_Plane (const PlaneClass &plane)
 
void Compute_Plane (void)
 
int Which_Side (const PlaneClass &plane) const
 
void Split (const PlaneClass &plane, PolygonClass &front, PolygonClass &back) const
 
bool Is_Degenerate (void)
 
bool Salvage_Degenerate (void)
 

Public Attributes

int MaterialId
 
int NumVerts
 
VertexClass Verts [BPT_POLY_MAX_VERTS]
 
PlaneClass Plane
 

Detailed Description

PolygonClass Temporary representation of polygons as they are being clipped

Definition at line 127 of file shattersystem.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
BPT_POLY_MAX_VERTS 

Definition at line 131 of file shattersystem.cpp.

Constructor & Destructor Documentation

◆ PolygonClass() [1/3]

PolygonClass::PolygonClass ( void )

Definition at line 392 of file shattersystem.cpp.

◆ PolygonClass() [2/3]

PolygonClass::PolygonClass ( const PolygonClass & that)

Definition at line 397 of file shattersystem.cpp.

◆ PolygonClass() [3/3]

PolygonClass::PolygonClass ( const VertexClass * points,
int num )

Definition at line 405 of file shattersystem.cpp.

Member Function Documentation

◆ Compute_Plane()

void PolygonClass::Compute_Plane ( void )

Definition at line 426 of file shattersystem.cpp.

◆ Get_Material_ID()

int PolygonClass::Get_Material_ID ( void ) const
inline

Definition at line 143 of file shattersystem.cpp.

◆ Get_Plane()

const PlaneClass & PolygonClass::Get_Plane ( void ) const
inline

Definition at line 144 of file shattersystem.cpp.

◆ Get_Vertex_Count()

int PolygonClass::Get_Vertex_Count ( void ) const
inline

Definition at line 142 of file shattersystem.cpp.

◆ Is_Degenerate()

bool PolygonClass::Is_Degenerate ( void )

Definition at line 618 of file shattersystem.cpp.

◆ operator=()

PolygonClass & PolygonClass::operator= ( const PolygonClass & that)

Definition at line 413 of file shattersystem.cpp.

◆ operator[]() [1/2]

VertexClass & PolygonClass::operator[] ( int i)
inline

Definition at line 140 of file shattersystem.cpp.

◆ operator[]() [2/2]

const VertexClass & PolygonClass::operator[] ( int i) const
inline

Definition at line 139 of file shattersystem.cpp.

◆ Salvage_Degenerate()

bool PolygonClass::Salvage_Degenerate ( void )

Definition at line 655 of file shattersystem.cpp.

◆ Set_Material_Id()

void PolygonClass::Set_Material_Id ( int id)
inline

Definition at line 147 of file shattersystem.cpp.

◆ Set_Plane()

void PolygonClass::Set_Plane ( const PlaneClass & plane)
inline

Definition at line 148 of file shattersystem.cpp.

◆ Set_Vertex_Count()

void PolygonClass::Set_Vertex_Count ( int count)
inline

Definition at line 146 of file shattersystem.cpp.

◆ Split()

void PolygonClass::Split ( const PlaneClass & plane,
PolygonClass & front,
PolygonClass & back ) const

Definition at line 487 of file shattersystem.cpp.

◆ Which_Side()

int PolygonClass::Which_Side ( const PlaneClass & plane) const

Definition at line 461 of file shattersystem.cpp.

Member Data Documentation

◆ MaterialId

int PolygonClass::MaterialId

Definition at line 159 of file shattersystem.cpp.

◆ NumVerts

int PolygonClass::NumVerts

Definition at line 160 of file shattersystem.cpp.

◆ Plane

PlaneClass PolygonClass::Plane

Definition at line 163 of file shattersystem.cpp.

◆ Verts

VertexClass PolygonClass::Verts[BPT_POLY_MAX_VERTS]

Definition at line 161 of file shattersystem.cpp.


The documentation for this class was generated from the following file: