0.6.0
Loading...
Searching...
No Matches
mod_shape_polygon Module Reference

Data Types

type  t_shape_polygon
 Polygon shape. More...
 

Functions/Subroutines

subroutine initialize_shape_polygon (shape)
 Initialize the polygon shape.
 
subroutine copy_shape_polygon (shape, copy)
 Copy the polygon.
 
logical pure function shape_polygon_is_inside (shape, point)
 Check if a point lies inside the polygon.
 
subroutine shape_polygon_get_samples_inside (shape, i, j, k, n, n_samples, samples)
 Check if a given number of point lies in a polygon.
 
pure subroutine shape_polygon_get_distance (shape, point, distance, direction)
 Compute the signed distance and the signed direction from a point to the polygon.
 
pure subroutine shape_polygon_ray_trace (shape, ray, has_normal, intersection_list)
 Compute the intersection between a polygon and a ray.
 

Function/Subroutine Documentation

◆ shape_polygon_ray_trace()

pure subroutine mod_shape_polygon::shape_polygon_ray_trace ( class(t_shape_polygon), intent(in) shape,
type(t_ray), intent(in) ray,
logical, intent(in) has_normal,
type(t_intersection_list), intent(inout) intersection_list )
private

Compute the intersection between a polygon and a ray.

Parameters
[in]shapepolygon shape
[in]rayray to intersect the polygon
[in]has_normallist of intersections between the ray and the polygon
[in,out]intersection_listlist of intersections between the ray and the polygon