Skip to content

Commit

Permalink
typo in delaunay.c and delaunay.h
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Nov 15, 2023
1 parent ad363e2 commit 7576e84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions C/delaunay.c
Expand Up @@ -17,7 +17,7 @@ unsigned facetOK_(facetT* facet, unsigned degenerate){



TesselationT* tesselation(
TessellationT* tessellation(
double* sites,
unsigned dim,
unsigned n,
Expand All @@ -42,7 +42,7 @@ TesselationT* tesselation(
//fclose(tmpstdout);
//printf("exitcode: %u\n", *exitcode);

TesselationT* out = malloc(sizeof(TesselationT)); /* output */
TessellationT* out = malloc(sizeof(TessellationT)); /* output */

if (!(*exitcode)) { /* 0 if no error from qhull */

Expand Down Expand Up @@ -545,7 +545,7 @@ void testdel2(){
double sites[27] = {0,0,0, 0,0,1, 0,1,0, 0,1,1, 1,0,0, 1,0,1, 1,1,0, 1,1,1, 0.5,0.5,0.5};
unsigned exitcode;
unsigned dim = 3;
TesselationT* x = tesselation(sites, dim, 9, 0, 0, 0, &exitcode);
TessellationT* x = tessellation(sites, dim, 9, 0, 0, 0, &exitcode);
printf("TESTDEL2 - nfacets:%u\n", x->ntiles);
for(unsigned f=0; f < x->ntiles; f++){
printf("facet %u - sites:\n", f);
Expand Down
6 changes: 3 additions & 3 deletions C/delaunay.h
Expand Up @@ -38,13 +38,13 @@ typedef struct Tile {
int orientation;
} TileT;

typedef struct Tesselation {
typedef struct Tessellation {
SiteT* sites;
TileT* tiles;
unsigned ntiles;
SubTileT* subtiles;
unsigned nsubtiles;
} TesselationT;
} TessellationT;

TesselationT* tesselation(double*, unsigned, unsigned, unsigned, unsigned, double, unsigned*);
TessellationT* tessellation(double*, unsigned, unsigned, unsigned, unsigned, double, unsigned*);
void testdel2();
9 changes: 9 additions & 0 deletions src/Geometry/Delaunay.hs
@@ -1,3 +1,12 @@
{-|
Module : Geometry.Delaunay
Description : Delaunay tessellation in arbitrary dimension.
Copyright : (c) Stéphane Laurent, 2023
License : GPL-3
Maintainer : laurent_step@outlook.fr
See README for an example.
-}
module Geometry.Delaunay
(module X)
where
Expand Down

0 comments on commit 7576e84

Please sign in to comment.