CellGPU  0.8.0
GPU-accelerated simulations of cells
Public Member Functions | Public Attributes | List of all members
DelaunayCell Struct Reference

A legacy structure (for use with non-CGAL implementations of the SPV branch) More...

#include <structures.h>

Public Member Functions

void setSize (int nn)
 base constructor More...
 
void getCW ()
 find CW order of neighbors
 
void getVoro ()
 Find the positions of the voronoi cell around the vertex.
 
void Calculate ()
 Calculate the area and perimeter of the voronoi cell.
 

Public Attributes

int n
 number of delaunay neighbors
 
std::vector< Dscalar2 > Dneighs
 The relative positions of the Delaunay neighbors.
 
std::vector< std::pair< Dscalar, int > > CWorder
 A structure to put the neighbors in oriented order.
 
std::vector< Dscalar2 > Vpoints
 The voronoi vertices.
 
Dscalar Varea
 The area of the cell.
 
Dscalar Vperimeter
 The perimeter of the cell.
 
bool Voro
 have the voronoi points of the cell already been calculated?
 

Detailed Description

A legacy structure (for use with non-CGAL implementations of the SPV branch)

Really the Voronoi cell of a Delaunay vertex. Given the relative positions of the vertices Delaunay neighbors, this puts the neighbors in clockwise order and calculates the Voronoi vertices of the Voronoi cell. Also calculates the area and perimeter of the Voronoi cell.

Member Function Documentation

◆ setSize()

void DelaunayCell::setSize ( int  nn)
inline

base constructor

Declare how many neighbors the cell has

Referenced by DelaunayLoc::getNeighbors(), and DelaunayLoc::triangulatePoint().


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