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

model_objects.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/deform.h>
#include <limits.h>

Include dependency graph for model_objects.c:

Include dependency graph

Go to the source code of this file.

Functions

private void set_deformation_model (deformation_model_struct *model, int up_to_n_points, Real model_weight, Deformation_model_types model_type, object_struct *model_object, Real min_curvature_offset, Real max_curvature_offset)
public void initialize_deformation_model (deformation_model_struct *model)
private void delete_model_points (deform_model_struct *model)
private void delete_deform_model (deform_model_struct *model)
private void print_deform_model (deform_model_struct *model)
public void print_deformation_model (deformation_model_struct *deformation_model)
public Status add_deformation_model (deformation_model_struct *deformation_model, int up_to_n_points, Real model_weight, char model_filename[], Real min_curvature_offset, Real max_curvature_offset)
public void delete_deformation_model (deformation_model_struct *model)
public Status input_original_positions (deformation_model_struct *deform_model, char position_filename[], Real max_position_offset, int n_deforming_points)
private void compute_line_model_info (lines_struct *lines, Point centroids[], Vector normals[])
private void compute_polygons_model_info (polygons_struct *polygons, Point centroids[], Vector normals[])
private BOOLEAN check_correct_general_polygons (polygons_struct *polygons, deform_model_struct *model)
private BOOLEAN check_correct_parametric_polygons (polygons_struct *polygons, deform_model_struct *model)
private BOOLEAN check_correct_subsampled_polygons (polygons_struct *polygons, deform_model_struct *model)
private BOOLEAN check_correct_model_polygons (polygons_struct *polygons, deform_model_struct *model)
public BOOLEAN check_correct_deformation_polygons (polygons_struct *polygons, deformation_model_struct *model)
private BOOLEAN check_correct_general_lines (lines_struct *lines, deform_model_struct *model)
private BOOLEAN check_correct_parametric_lines (lines_struct *lines, deform_model_struct *model)
private BOOLEAN check_correct_model_lines (lines_struct *lines, deform_model_struct *model)
public BOOLEAN check_correct_deformation_lines (lines_struct *lines, deformation_model_struct *model)
public deform_model_structfind_relevent_model (deformation_model_struct *model, int point_index)


Function Documentation

public Status add_deformation_model deformation_model_struct deformation_model,
int  up_to_n_points,
Real  model_weight,
char  model_filename[],
Real  min_curvature_offset,
Real  max_curvature_offset
 

Definition at line 164 of file model_objects.c.

References AVERAGE_MODEL, Deformation_model_types, FLAT_MODEL, GENERAL_MODEL, input_graphics_file(), PARAMETRIC_MODEL, and set_deformation_model().

public BOOLEAN check_correct_deformation_lines lines_struct lines,
deformation_model_struct model
 

Definition at line 774 of file model_objects.c.

References check_correct_model_lines(), FALSE, deformation_model_struct::models, deformation_model_struct::n_models, lines_struct::n_points, TRUE, and deform_model_struct::up_to_n_points.

Referenced by one_iteration_lines().

public BOOLEAN check_correct_deformation_polygons polygons_struct polygons,
deformation_model_struct model
 

Definition at line 646 of file model_objects.c.

References check_correct_model_polygons(), FALSE, deformation_model_struct::models, deformation_model_struct::n_models, polygons_struct::n_points, TRUE, and deform_model_struct::up_to_n_points.

private BOOLEAN check_correct_general_lines lines_struct lines,
deform_model_struct model
 

Definition at line 677 of file model_objects.c.

References compute_line_model_info(), delete_model_points(), FALSE, get_lines_ptr(), LINES, deform_model_struct::model_centroids, deform_model_struct::model_normals, deform_model_struct::model_object, deform_model_struct::model_points, deform_model_struct::n_model_points, lines_struct::n_points, object_struct::object_type, lines_struct::points, and TRUE.

Referenced by check_correct_model_lines(), and check_correct_parametric_lines().

private BOOLEAN check_correct_general_polygons polygons_struct polygons,
deform_model_struct model
 

Definition at line 394 of file model_objects.c.

References compute_polygons_model_info(), delete_model_points(), delete_polygons(), FALSE, get_polygons_ptr(), get_tessellation_of_polygons_sphere(), half_sample_sphere_tessellation(), half_sample_tetrahedral_tessellation(), is_this_tetrahedral_topology(), deform_model_struct::model_centroids, deform_model_struct::model_normals, deform_model_struct::model_object, deform_model_struct::model_points, deform_model_struct::n_model_points, polygons_struct::n_points, object_struct::object_type, polygons_struct::points, POLYGONS, TRUE, and deform_model_struct::up_to_n_points.

Referenced by check_correct_model_polygons(), and check_correct_parametric_polygons().

private BOOLEAN check_correct_model_lines lines_struct lines,
deform_model_struct model
 

Definition at line 758 of file model_objects.c.

References check_correct_general_lines(), check_correct_parametric_lines(), GENERAL_MODEL, deform_model_struct::model_type, PARAMETRIC_MODEL, and TRUE.

Referenced by check_correct_deformation_lines().

private BOOLEAN check_correct_model_polygons polygons_struct polygons,
deform_model_struct model
 

Definition at line 628 of file model_objects.c.

References check_correct_general_polygons(), check_correct_parametric_polygons(), check_correct_subsampled_polygons(), GENERAL_MODEL, deform_model_struct::model_type, polygons_struct::n_points, PARAMETRIC_MODEL, TRUE, and deform_model_struct::up_to_n_points.

Referenced by check_correct_deformation_polygons().

private BOOLEAN check_correct_parametric_lines lines_struct lines,
deform_model_struct model
 

Definition at line 726 of file model_objects.c.

References check_correct_general_lines(), create_line_circle(), create_object(), delete_deform_model(), get_lines_ptr(), LINES, deform_model_struct::model_object, deform_model_struct::n_model_points, lines_struct::n_points, and object_struct::object_type.

Referenced by check_correct_model_lines().

private BOOLEAN check_correct_parametric_polygons polygons_struct polygons,
deform_model_struct model
 

Definition at line 516 of file model_objects.c.

References check_correct_general_polygons(), create_object(), create_polygons_sphere(), create_tetrahedral_sphere(), delete_deform_model(), FALSE, get_polygons_ptr(), get_tessellation_of_polygons_sphere(), get_tessellation_with_n_points(), get_tetra_tessellation_with_n_points(), deform_model_struct::model_object, polygons_struct::n_points, object_struct::object_type, POLYGONS, and deform_model_struct::up_to_n_points.

Referenced by check_correct_model_polygons().

private BOOLEAN check_correct_subsampled_polygons polygons_struct polygons,
deform_model_struct model
 

Definition at line 573 of file model_objects.c.

References create_object(), create_polygons_sphere(), create_tetrahedral_sphere(), delete_deform_model(), FALSE, get_polygons_ptr(), get_tessellation_of_polygons_sphere(), get_tessellation_with_n_points(), get_tetra_tessellation_with_n_points(), deform_model_struct::model_object, polygons_struct::n_points, object_struct::object_type, POLYGONS, TRUE, and deform_model_struct::up_to_n_points.

Referenced by check_correct_model_polygons().

private void compute_line_model_info lines_struct lines,
Point  centroids[],
Vector  normals[]
 

Definition at line 304 of file model_objects.c.

References find_axial_plane(), get_neighbours_of_line_vertex(), GET_OBJECT_SIZE, lines_struct::indices, lines_struct::n_points, and lines_struct::points.

Referenced by check_correct_general_lines().

private void compute_polygons_model_info polygons_struct polygons,
Point  centroids[],
Vector  normals[]
 

Definition at line 354 of file model_objects.c.

References check_polygons_neighbours_computed(), compute_polygon_point_centroid(), polygons_struct::end_indices, FALSE, GET_OBJECT_SIZE, polygons_struct::indices, polygons_struct::n_items, polygons_struct::n_points, POINT_INDEX, and TRUE.

Referenced by check_correct_general_polygons().

private void delete_deform_model deform_model_struct model  ) 
 

Definition at line 37 of file model_objects.c.

References delete_model_points(), delete_object(), GENERAL_MODEL, deform_model_struct::model_object, deform_model_struct::model_type, and PARAMETRIC_MODEL.

Referenced by check_correct_parametric_lines(), check_correct_parametric_polygons(), check_correct_subsampled_polygons(), delete_deformation_model(), and set_deformation_model().

public void delete_deformation_model deformation_model_struct model  ) 
 

Definition at line 222 of file model_objects.c.

References delete_deform_model(), deformation_model_struct::models, deformation_model_struct::n_models, deformation_model_struct::original_positions, and deformation_model_struct::position_constrained.

Referenced by delete_deformation_parameters().

private void delete_model_points deform_model_struct model  ) 
 

Definition at line 25 of file model_objects.c.

References deform_model_struct::model_centroids, deform_model_struct::model_normals, deform_model_struct::model_points, and deform_model_struct::n_model_points.

Referenced by check_correct_general_lines(), check_correct_general_polygons(), and delete_deform_model().

public deform_model_struct* find_relevent_model deformation_model_struct model,
int  point_index
 

Definition at line 805 of file model_objects.c.

References deformation_model_struct::models, deformation_model_struct::n_models, and deform_model_struct::up_to_n_points.

Referenced by compute_equilibrium_point(), get_model_point(), and get_subsampled_neighbours_of_point().

public void initialize_deformation_model deformation_model_struct model  ) 
 

Definition at line 14 of file model_objects.c.

References FALSE, FLAT_MODEL, deformation_model_struct::n_models, deformation_model_struct::position_constrained, and set_deformation_model().

Referenced by initialize_deformation_parameters().

public Status input_original_positions deformation_model_struct deform_model,
char  position_filename[],
Real  max_position_offset,
int  n_deforming_points
 

Definition at line 237 of file model_objects.c.

References delete_object_list(), FALSE, get_lines_ptr(), get_polygons_ptr(), input_graphics_file(), LINES, deformation_model_struct::max_position_offset, lines_struct::n_points, polygons_struct::n_points, object_struct::object_type, deformation_model_struct::original_positions, lines_struct::points, polygons_struct::points, POLYGONS, deformation_model_struct::position_constrained, and TRUE.

private void print_deform_model deform_model_struct model  ) 
 

Definition at line 104 of file model_objects.c.

References AVERAGE_MODEL, FLAT_MODEL, GENERAL_MODEL, get_object_name(), deform_model_struct::max_curvature_offset, deform_model_struct::min_curvature_offset, deform_model_struct::model_object, deform_model_struct::model_type, deform_model_struct::model_weight, deform_model_struct::n_model_points, PARAMETRIC_MODEL, and deform_model_struct::up_to_n_points.

Referenced by print_deformation_model().

public void print_deformation_model deformation_model_struct deformation_model  ) 
 

Definition at line 147 of file model_objects.c.

References deformation_model_struct::models, deformation_model_struct::n_models, deformation_model_struct::position_constrained, and print_deform_model().

private void set_deformation_model deformation_model_struct model,
int  up_to_n_points,
Real  model_weight,
Deformation_model_types  model_type,
object_struct model_object,
Real  min_curvature_offset,
Real  max_curvature_offset
 

Definition at line 53 of file model_objects.c.

References delete_deform_model(), GENERAL_MODEL, deform_model_struct::max_curvature_offset, deform_model_struct::min_curvature_offset, deform_model_struct::model_centroids, deform_model_struct::model_normals, deform_model_struct::model_object, deform_model_struct::model_points, deform_model_struct::model_type, deform_model_struct::model_weight, deformation_model_struct::models, deform_model_struct::n_model_points, deformation_model_struct::n_models, and deform_model_struct::up_to_n_points.

Referenced by add_deformation_model(), and initialize_deformation_model().


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