#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "grid_cell.h"
#include "utils_core.h"
#include "ensure_array_size.h"
#include "geometry.h"
Go to the source code of this file.
◆ ensure_grid_cell_size()
static void ensure_grid_cell_size 
( 
struct yac_grid_cell * 
cell, 


size_t 
num_corners 

) 
 

static 
◆ set_triangle()
◆ yac_copy_grid_cell()
copies a given grid cell
 Parameters

[in]  in_cell  cell to be copied 
[out]  out_cell  copied cell 
Definition at line 34 of file grid_cell.c.
◆ yac_free_grid_cell()
◆ yac_init_grid_cell()
◆ yac_triangulate_cell()
splits given cell into triangles
 Parameters

[in]  cell  cell to be triangulated 
[in]  start_corner  start algorithm at corner with this index (0 <= start_corner < n; with n being number of cell corners) 
[out]  triangles  triangles that are the result of the triangulation 
Definition at line 66 of file grid_cell.c.
◆ yac_triangulate_cell_indices()
void yac_triangulate_cell_indices 
( 
size_t const * 
corner_indices, 


size_t 
num_corners, 


size_t 
start_corner, 


size_t(*) 
triangle_indices[3] 

) 
 
splits given indices of a cell into triangles
 Parameters

[in]  corner_indices  cell corner indices to be triangulated 
[in]  num_corners  number of corners of the cell 
[in]  start_corner  start algorithm at corner with this index (0 <= start_corner < n; with n being number of cell corners) 
[out]  triangle_indices  triangle indices that are the result of the triangulation 
Definition at line 144 of file grid_cell.c.