Skip to content

fossil_ray_query ​

Source: src/lib/fossil_ray_query.f90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
RAY_STATUS_OKinteger(kind=I4P)parameter
RAY_STATUS_BAD_INPUTinteger(kind=I4P)parameter
DIR_TOLreal(kind=R8P)parameter

Derived Types ​

ray_hit_t ​

Components

NameTypeAttributesDescription
facet_idinteger(kind=I4P)
treal(kind=R8P)
pointtype(vector_R8P)

ray_exact_t ​

Components

NameTypeAttributesDescription
oreal(kind=R8P)
qreal(kind=R8P)
dreal(kind=R8P)
axisinteger(kind=I4P)
padreal(kind=R8P)

Subroutines ​

ray_facet_crossing ​

fortran
subroutine ray_facet_crossing(ray, facet, hit, t)

Arguments

NameTypeIntentAttributesDescription
raytype(ray_exact_t)in
facettype(facet_object)in
hitlogicalout
treal(kind=R8P)out

Call graph

ray_intersect_all_flat ​

fortran
subroutine ray_intersect_all_flat(facet, ray_origin, ray_direction, hits, status, exclude)

Arguments

NameTypeIntentAttributesDescription
facettype(facet_object)in
ray_origintype(vector_R8P)in
ray_directiontype(vector_R8P)in
hitstype(ray_hit_t)outallocatable
statusinteger(kind=I4P)outoptional
excludeinteger(kind=I4P)inoptional

Call graph

facets_box ​

Attributes: pure

fortran
subroutine facets_box(facet, bmin, bmax)

Arguments

NameTypeIntentAttributesDescription
facettype(facet_object)in
bmintype(vector_R8P)out
bmaxtype(vector_R8P)out

Call graph

sort_hits_by_t ​

Attributes: pure

fortran
subroutine sort_hits_by_t(hits)

Arguments

NameTypeIntentAttributesDescription
hitstype(ray_hit_t)inout

Call graph

Functions ​

ray_prepare ​

Attributes: pure

Returns: type(ray_exact_t)

fortran
function ray_prepare(ray_origin, ray_direction, bmin, bmax, reach) result(ray)

Arguments

NameTypeIntentAttributesDescription
ray_origintype(vector_R8P)in
ray_directiontype(vector_R8P)in
bmintype(vector_R8P)in
bmaxtype(vector_R8P)in
reachreal(kind=R8P)inoptional

Call graph