Skip to content

fossil_aabb_object ​

Source: src/lib/fossil_aabb_object.f90

Dependencies

Contents ​

Derived Types ​

aabb_object ​

Components ​

NameTypeAttributesDescription
bmintype(vector_R8P)
bmaxtype(vector_R8P)
facet_idtype(list_id_object)

Type-Bound Procedures ​

NameAttributesDescription
add_facetspass(self)
closest_pointpass(self)
compute_octantspass(self)
compute_vertices_nearbypass(self)
destroypass(self)
distancepass(self)
distance_from_facetspass(self)
update_best_from_facetspass(self)
do_ray_intersectpass(self)
ray_slab_intervalpass(self)
get_aabb_facetspass(self)
has_facetspass(self)
initializepass(self)
is_insidepass(self)
medianpass(self)
ray_intersections_numberpass(self)
save_geometry_tecplot_asciipass(self)
save_facets_into_file_stlpass(self)
translatepass(self)
unionpass(self)
update_extentspass(self)
vertexpass(self)
assignment(=)
aabb_assign_aabbpass(lhs)

Subroutines ​

add_facets ​

Attributes: pure

fortran
subroutine add_facets(self, facet_id, facet, is_exclusive)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout
facet_idtype(list_id_object)inout
facettype(facet_object)in
is_exclusivelogicalinoptional

Call graph

compute_octants ​

Attributes: pure

fortran
subroutine compute_octants(self, octant)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
octanttype(aabb_object)out

Call graph

compute_vertices_nearby ​

Attributes: pure

fortran
subroutine compute_vertices_nearby(self, facet, tolerance_to_be_nearby)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)inout
tolerance_to_be_nearbyreal(kind=R8P)in

Call graph

destroy ​

Attributes: elemental

fortran
subroutine destroy(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout

Call graph

update_best_from_facets ​

Attributes: pure

fortran
subroutine update_best_from_facets(self, facet, point, best, best_facet, best_region)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)in
pointtype(vector_R8P)in
bestreal(kind=R8P)inout
best_facetinteger(kind=I4P)inout
best_regioninteger(kind=I4P)inout

Call graph

ray_slab_interval ​

Attributes: pure

fortran
subroutine ray_slab_interval(self, ray_origin, ray_direction, t_near, t_far, do_intersect)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
ray_origintype(vector_R8P)in
ray_directiontype(vector_R8P)in
t_nearreal(kind=R8P)out
t_farreal(kind=R8P)out
do_intersectlogicalout

Call graph

get_aabb_facets ​

Attributes: pure

fortran
subroutine get_aabb_facets(self, facet, aabb_facet)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)in
aabb_facettype(facet_object)outallocatable

Call graph

initialize ​

Attributes: pure

fortran
subroutine initialize(self, facet, bmin, bmax)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout
facettype(facet_object)inoptional
bmintype(vector_R8P)inoptional
bmaxtype(vector_R8P)inoptional

Call graph

save_geometry_tecplot_ascii ​

fortran
subroutine save_geometry_tecplot_ascii(self, file_unit, aabb_name)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
file_unitinteger(kind=I4P)in
aabb_namecharacter(len=*)inoptional

Call graph

save_facets_into_file_stl ​

fortran
subroutine save_facets_into_file_stl(self, facet, file_name, is_ascii)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)in
file_namecharacter(len=*)in
is_asciilogicalin

Call graph

translate ​

Attributes: elemental

fortran
subroutine translate(self, delta)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout
deltatype(vector_R8P)in

Call graph

union ​

Attributes: pure

fortran
subroutine union(self, other)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout
othertype(aabb_object)in

Call graph

update_extents ​

Attributes: pure

fortran
subroutine update_extents(self, facet)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)inout
facettype(facet_object)in

Call graph

aabb_assign_aabb ​

Attributes: pure

fortran
subroutine aabb_assign_aabb(lhs, rhs)

Arguments

NameTypeIntentAttributesDescription
lhsclass(aabb_object)inout
rhstype(aabb_object)in

compute_bb_from_facets ​

Attributes: pure

fortran
subroutine compute_bb_from_facets(facet, bmin, bmax)

Arguments

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

Call graph

Functions ​

closest_point ​

Attributes: pure

Returns: type(vector_R8P)

fortran
function closest_point(self, point) result(closest)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
pointtype(vector_R8P)in

Call graph

distance ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function distance(self, point)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
pointtype(vector_R8P)in

Call graph

distance_from_facets ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function distance_from_facets(self, facet, point) result(distance)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)in
pointtype(vector_R8P)in

Call graph

do_ray_intersect ​

Attributes: pure

Returns: logical

fortran
function do_ray_intersect(self, ray_origin, ray_direction) result(do_intersect)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
ray_origintype(vector_R8P)in
ray_directiontype(vector_R8P)in

Call graph

has_facets ​

Attributes: pure

Returns: logical

fortran
function has_facets(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in

Call graph

is_inside ​

Attributes: pure

Returns: logical

fortran
function is_inside(self, point)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
pointtype(vector_R8P)in

Call graph

median ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function median(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in

Call graph

ray_intersections_number ​

Attributes: pure

Returns: integer(kind=I4P)

fortran
function ray_intersections_number(self, facet, ray_origin, ray_direction) result(intersections_number)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in
facettype(facet_object)in
ray_origintype(vector_R8P)in
ray_directiontype(vector_R8P)in

Call graph

vertex ​

Attributes: pure

Returns: type(vector_R8P)

fortran
function vertex(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(aabb_object)in

Call graph