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

geometry.c File Reference

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

Include dependency graph for geometry.c:

Include dependency graph

Go to the source code of this file.

Functions

public void find_polygon_normal_no_normalize (int n_points, Point points[], Real *nx, Real *ny, Real *nz)
public void find_polygon_normal (int n_points, Point points[], Vector *normal)
public void get_plane_through_points (int n_points, Point points[], Vector *normal, Real *plane_constant)
public Real distance_from_plane (Point *point, Vector *plane_normal, Real plane_constant)
public Real distance_from_line (Point *point, Point *end_point1, Point *end_point2)


Function Documentation

public Real distance_from_line Point *  point,
Point *  end_point1,
Point *  end_point2
 

Definition at line 213 of file geometry.c.

References distance_between_points().

public Real distance_from_plane Point *  point,
Vector *  plane_normal,
Real  plane_constant
 

Definition at line 190 of file geometry.c.

Referenced by get_plane_through_points().

public void find_polygon_normal int  n_points,
Point  points[],
Vector *  normal
 

Definition at line 129 of file geometry.c.

References find_polygon_normal_no_normalize(), nx, ny, and nz.

Referenced by compute_points_centroid_and_normal(), compute_polygon_normal(), compute_quadmesh_normals(), find_point_polygon_distance_sq(), get_plane_through_points(), and update_point_position().

public void find_polygon_normal_no_normalize int  n_points,
Point  points[],
Real *  nx,
Real *  ny,
Real *  nz
 

Definition at line 37 of file geometry.c.

References null_Vector(), nx, ny, nz, and y.

Referenced by find_polygon_normal().

public void get_plane_through_points int  n_points,
Point  points[],
Vector *  normal,
Real *  plane_constant
 

Definition at line 160 of file geometry.c.

References distance_from_plane(), find_polygon_normal(), and get_points_centroid().


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