Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

polygon_sphere.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/geom.h>
#include <bicpl/numerical.h>

Include dependency graph for polygon_sphere.c:

Include dependency graph

Go to the source code of this file.

Functions

private int get_n_sphere_points (int n_up, int n_around)
private void get_sphere_point (Real up, Real around, Point *centre, Real x_size, Real y_size, Real z_size, Point *point)
private void get_subdivided_point (int up, int around, Point input_points[], int input_n_up, Point *point)
public void create_polygons_sphere (Point *centre, Real x_size, Real y_size, Real z_size, int n_up, int n_around, BOOLEAN subdividing_flag, polygons_struct *polygons)
public int get_sphere_point_index (int up, int around, int n_up, int n_around)
public BOOLEAN is_this_sphere_topology (polygons_struct *polygons)
public BOOLEAN get_tessellation_of_polygons_sphere (polygons_struct *polygons, int *tess)
public int get_tessellation_with_n_points (int n_points)
public void half_sample_sphere_tessellation (polygons_struct *polygons, polygons_struct *half)


Function Documentation

public void create_polygons_sphere Point *  centre,
Real  x_size,
Real  y_size,
Real  z_size,
int  n_up,
int  n_around,
BOOLEAN  subdividing_flag,
polygons_struct polygons
 

Definition at line 63 of file polygon_sphere.c.

References polygons_struct::colours, delete_polygons(), polygons_struct::end_indices, get_n_sphere_points(), get_sphere_point(), get_sphere_point_index(), get_subdivided_point(), get_tessellation_of_polygons_sphere(), polygons_struct::indices, initialize_polygons(), polygons_struct::n_items, polygons_struct::n_points, polygons_struct::normals, polygons_struct::points, and WHITE.

Referenced by check_correct_parametric_polygons(), check_correct_subsampled_polygons(), create_tetrahedral_sphere(), half_sample_sphere_tessellation(), and subdivide_polygons().

private int get_n_sphere_points int  n_up,
int  n_around
 

Definition at line 297 of file polygon_sphere.c.

Referenced by create_polygons_sphere().

private void get_sphere_point Real  up,
Real  around,
Point *  centre,
Real  x_size,
Real  y_size,
Real  z_size,
Point *  point
 

Definition at line 322 of file polygon_sphere.c.

Referenced by create_polygons_sphere().

public int get_sphere_point_index int  up,
int  around,
int  n_up,
int  n_around
 

Definition at line 252 of file polygon_sphere.c.

Referenced by create_polygons_sphere(), get_subdivided_point(), and half_sample_sphere_tessellation().

private void get_subdivided_point int  up,
int  around,
Point  input_points[],
int  input_n_up,
Point *  point
 

Definition at line 358 of file polygon_sphere.c.

References get_sphere_point_index().

Referenced by create_polygons_sphere().

public BOOLEAN get_tessellation_of_polygons_sphere polygons_struct polygons,
int *  tess
 

Definition at line 437 of file polygon_sphere.c.

References FALSE, GET_OBJECT_SIZE, and polygons_struct::n_items.

Referenced by check_correct_general_polygons(), check_correct_parametric_polygons(), check_correct_subsampled_polygons(), create_polygons_sphere(), half_sample_sphere_tessellation(), and is_this_sphere_topology().

public int get_tessellation_with_n_points int  n_points  ) 
 

Definition at line 502 of file polygon_sphere.c.

References solve_quadratic().

Referenced by check_correct_parametric_polygons(), and check_correct_subsampled_polygons().

public void half_sample_sphere_tessellation polygons_struct polygons,
polygons_struct half
 

Definition at line 545 of file polygon_sphere.c.

References polygons_struct::colour_flag, polygons_struct::colours, create_polygons_sphere(), FALSE, get_sphere_point_index(), get_tessellation_of_polygons_sphere(), polygons_struct::n_points, ONE_COLOUR, PER_ITEM_COLOURS, PER_VERTEX_COLOURS, polygons_struct::points, and polygons_struct::surfprop.

Referenced by check_correct_general_polygons().

public BOOLEAN is_this_sphere_topology polygons_struct polygons  ) 
 

Definition at line 415 of file polygon_sphere.c.

References get_tessellation_of_polygons_sphere().

Referenced by subdivide_polygons().


Generated on Wed Jul 28 09:11:14 2004 for BICPL by doxygen 1.3.7