Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray3D::cMeshInt Class Reference

#include <cMesh.h>

Inheritance diagram for Gray3D::cMeshInt:
Gray3D::cMeshT< int >

Public Member Functions

HRESULT GetHalfspaceMesh (const cPlanef &plane, OUT cMeshInt &meshResult, ITERATE_t numVerts=-1, ITERATE_t numInds=-1) const
 
- Public Member Functions inherited from Gray3D::cMeshT< int >
 cMeshT (size_t nVertStride=0)
 
void FreeMesh ()
 

Additional Inherited Members

- Public Types inherited from Gray3D::cMeshT< int >
typedef int INDEX_t
 _TYPE_INDEX = WORD or INT32 More...
 
- Public Attributes inherited from Gray3D::cMeshT< int >
cMeshIndexT< int > m_Index
 Index into m_Verts buffer. More...
 
cMeshVertsV m_Verts
 flexible vertex format array. ASSUME first element is always cVector3f More...
 

Detailed Description

Lightweight indexed mesh with variable-size polygons as base primitive. INDEX_t = int 32 bit. D3DXMESH_32BIT. NOT TRIANGLELIST-BASED - convex polygons of any size are allowed Main purpose - efficient (real time) boolean operations on abstract geometry indices are not usual DX-style triplets, but variable size polygon records instead sequential list of all vertices for all polygons, for each polygon terminator index is <0. I.E. triangle - (ia,ib,ic,-1), quad - (ia,ib,ic,id,-1), etc

Member Function Documentation

◆ GetHalfspaceMesh()

HRESULT Gray3D::cMeshInt::GetHalfspaceMesh ( const cPlanef plane,
OUT cMeshInt meshResult,
ITERATE_t  numVerts = -1,
ITERATE_t  numInds = -1 
) const

create a new derived mesh. meshResult dispose all vertices outside the half space plane. used for sea surf.

  • iVSize < 0 = all.

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