ON_MeshNgonAllocator Class Reference

#include <opennurbs_mesh.h>

Public Member Functions

 ON_MeshNgonAllocator () ON_NOEXCEPT
 
 ~ON_MeshNgonAllocator ()
 
ON_MeshNgonAllocateNgon (unsigned int Vcount, unsigned int Fcount)
 
ON_MeshNgonCopyNgon (const ON_MeshNgon *ngon)
 Returns a copy of ngon. More...
 
void DeallocateAllNgons ()
 Deallocate every n-gon managed by this allocator. More...
 
bool DeallocateNgon (ON_MeshNgon *ngon)
 
ON_MeshNgonReallocateNgon (ON_MeshNgon *ngon, unsigned int Vcount, unsigned int Fcount)
 

Constructor & Destructor Documentation

◆ ON_MeshNgonAllocator()

ON_MeshNgonAllocator::ON_MeshNgonAllocator ( )

◆ ~ON_MeshNgonAllocator()

ON_MeshNgonAllocator::~ON_MeshNgonAllocator ( )

Member Function Documentation

◆ AllocateNgon()

ON_MeshNgon* ON_MeshNgonAllocator::AllocateNgon ( unsigned int  Vcount,
unsigned int  Fcount 
)
Parameters
Vcount[in] >= 3
Fcount[in] >= 0

◆ CopyNgon()

ON_MeshNgon* ON_MeshNgonAllocator::CopyNgon ( const ON_MeshNgon ngon)

Returns a copy of ngon.

Parameters
ngon[in]
Returns
If

◆ DeallocateAllNgons()

void ON_MeshNgonAllocator::DeallocateAllNgons ( )

Deallocate every n-gon managed by this allocator.

◆ DeallocateNgon()

bool ON_MeshNgonAllocator::DeallocateNgon ( ON_MeshNgon ngon)
Parameters
ngonin] An ngon pointer value that was previously returned by this allocator's AllocateNgon() or CopyNgon() function.

◆ ReallocateNgon()

ON_MeshNgon* ON_MeshNgonAllocator::ReallocateNgon ( ON_MeshNgon ngon,
unsigned int  Vcount,
unsigned int  Fcount 
)
Parameters
Vcount[in] >= 3
Fcount[in] >= 0