Shape initializer base class. More...
Public Member Functions | |
| procedure | is_inside (initializer, point) |
| Test if a point is inside the shape of the initializer. | |
| procedure | get_samples_inside (initializer, i, j, k, n, samples) |
| Test if a set of point is inside the shape of the initializer. | |
| procedure | get_distance (initializer, point, distance, direction) |
| Evaluate the distance from a point to the shape of the initializer. | |
| procedure | set_samples (initializer, n_samples) |
| Set the number of samples. | |
| procedure | ray_trace (initializer, ray, has_normal, intersection_list) |
| Ray-trace the shape of the initializer. | |
Public Attributes | |
| class(t_shape), allocatable | shape |
| Contains the shape of the initializer. | |
| integer | n_samples = 10 |
| Number of samples for the 'get_samples_inside' routine. | |
Shape initializer base class.
| procedure type_initializer::t_shape_initializer::get_distance | ( | class(t_shape_initializer), intent(in) | initializer, |
| double precision, dimension(3), intent(in) | point, | ||
| double precision, intent(out) | distance, | ||
| double precision, dimension(3), intent(out) | direction ) |
Evaluate the distance from a point to the shape of the initializer.
| procedure type_initializer::t_shape_initializer::get_samples_inside | ( | class(t_shape_initializer), intent(inout) | initializer, |
| integer, intent(in) | i, | ||
| integer, intent(in) | j, | ||
| integer, intent(in) | k, | ||
| integer, intent(in) | n, | ||
| integer, dimension(:,:,:), intent(inout) | samples ) |
Test if a set of point is inside the shape of the initializer.
| procedure type_initializer::t_shape_initializer::is_inside | ( | class(t_shape_initializer), intent(in) | initializer, |
| double precision, dimension(3), intent(in) | point ) |
Test if a point is inside the shape of the initializer.
| procedure type_initializer::t_shape_initializer::ray_trace | ( | class(t_shape_initializer), intent(in) | initializer, |
| type(t_ray), intent(in) | ray, | ||
| logical, intent(in) | has_normal, | ||
| type(t_intersection_list), intent(inout) | intersection_list ) |
Ray-trace the shape of the initializer.
| procedure type_initializer::t_shape_initializer::set_samples | ( | class(t_shape_initializer), intent(inout) | initializer, |
| integer, intent(in) | n_samples ) |
Set the number of samples.
| integer type_initializer::t_shape_initializer::n_samples = 10 |
Number of samples for the 'get_samples_inside' routine.
| class(t_shape), allocatable type_initializer::t_shape_initializer::shape |
Contains the shape of the initializer.