PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_test_chaikin_polygons()

static void do_test_chaikin_polygons ( void  )
static

Definition at line 48 of file cu_chaikin.c.

49 {
50  /*Simpliest test*/
51  do_test_chaikin("POLYGON((0 0,8 8,16 0,0 0))","POLYGON((0 0,6 6,10 6,14 2,12 0,0 0))", 1, 1);
52  /*2 iterations*/
53  do_test_chaikin("POLYGON((0 0,8 8,16 0,0 0))","POLYGON((0 0,4.5 4.5,7 6,9 6,11 5,13 3,13.5 1.5,12.5 0.5,9 0,0 0))", 2, 1);
54  /*2 iterations without preserving end points*/
55  do_test_chaikin("POLYGON((0 0,8 8,16 0,0 0))","POLYGON((3 3,5 5,7 6,9 6,11 5,13 3,13.5 1.5,12.5 0.5,10 0,6 0,3.5 0.5,2.5 1.5,3 3))", 2, 0);
56  return;
57 }
static void do_test_chaikin(char *geom_txt, char *expected, int n_iterations, int preserve_end_points)
Definition: cu_chaikin.c:21

References do_test_chaikin().

Referenced by chaikin_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: