: Add description
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rk), | private | :: | coordStart(3) | real world coordinates of the start point of the ray |
|||
real(kind=rk), | private | :: | direction(3) | direction vector of the line |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rk), | private | :: | coord(3) | real world coordinates of one point of the plane |
|||
real(kind=rk), | private | :: | normal(3) | normal vector of the plane |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rk), | private | :: | lambda | value of lamda (parameter of the line) of the intersection |
|||
real(kind=rk), | private | :: | coord(3) | real world coordinates of the intersection |
|||
real(kind=rk), | private | :: | distance(3) | distance between the center of the face (element) and the intersection |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rk), | private | :: | center(3) | ||||
real(kind=rk), | private | :: | length |
This subroutine checks at which face, edge or corner the line leaves the element and calculates the next element.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | TreeID | |||
type(tem_line) | :: | line | ||||
type(treelmesh_type), | intent(in) | :: | tree |
This subroutine calculates the intersection between a plane and a line. It gives back the coordinates of the intersection, the multiple of the direction vector of the intersection and the distance of the intersection to the center point of the plan.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_plane), | intent(in) | :: | plane | |||
type(tem_line), | intent(in) | :: | line | |||
logical, | intent(out) | :: | intersects | |||
type(tem_intersec), | intent(out) | :: | intersection |
This subroutine calculates the intersection between a line and a line. It gives back the coordinates of the intersection, the multiple of the direction vector of the intersection and the distance of the intersection to the center point of the line.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_line), | intent(in) | :: | edge | |||
type(tem_line), | intent(in) | :: | line | |||
logical, | intent(out) | :: | intersects | |||
type(tem_intersec), | intent(out) | :: | intersection |
This subroutine checks whether a line intersects with a point
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | dimension(3) | :: | point | |||
type(tem_line) | :: | line | ||||
logical | :: | intersects | ||||
type(tem_intersec) | :: | intersection |