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

#include <W3DPoly.h>

Public Member Functions

void Reset (void)
 
void Add_Vertex (const Vector3 &point)
 
void Clip (const PlaneClass &plane, ClipPolyClass &dest) const
 

Public Attributes

SimpleDynVecClass< Vector3Verts
 

Detailed Description

VisPolyClass - This class is used to clip a polygon to a plane. Useful for manually clipping polys to the frustum or other geometry. Based on internal WW3D2 code.

Definition at line 60 of file W3DPoly.h.

Member Function Documentation

◆ Add_Vertex()

void ClipPolyClass::Add_Vertex ( const Vector3 & point)

Add a new vertex to polygon

Definition at line 39 of file W3DPoly.cpp.

◆ Clip()

void ClipPolyClass::Clip ( const PlaneClass & plane,
ClipPolyClass & dest ) const

Clip polygon to given plane, returning new polygon in dest.

Definition at line 47 of file W3DPoly.cpp.

◆ Reset()

void ClipPolyClass::Reset ( void )

Delete all vertices in polygon

Definition at line 31 of file W3DPoly.cpp.

Member Data Documentation

◆ Verts

SimpleDynVecClass<Vector3> ClipPolyClass::Verts

Definition at line 67 of file W3DPoly.h.


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