sdr_canonicalND_module Module

This module provides the routine to load canonical geometrical objects to growing array of geometries and their positions in growing array in growing array of spatialObj



Subroutines

public subroutine sdr_load_canonicalND(pntArray, lineArray, triArray, boxArray, spaObjArray, attr_pos, transform, conf, thandle)

This routine loads canonical geometrial objects like point, line, plane and box and add them to the growing array of each primitive geometries and the position of this geometries are stored in the growing array of spatialObject

Arguments

Type IntentOptional Attributes Name
type(grw_pointarray_type), intent(inout) :: pntArray

growing array of points

type(grw_linearray_type), intent(inout) :: lineArray

growing array of line

type(grw_trianglearray_type), intent(inout) :: triArray

growing array of triangles

type(grw_boxarray_type), intent(inout) :: boxArray

growing array of boxes

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

Position of the attribute to connect this object to.

type(tem_transformation_type), intent(in) :: transform

transformation for spatial object

type(flu_State) :: conf

lua state

integer, intent(in) :: thandle

public subroutine append_CanoNDPointToSdrPoint(canopoint, pntArray, spaObjArray, attr_pos)

This routine convert canonical point to seeder point array

Arguments

Type IntentOptional Attributes Name
type(tem_point_type), intent(in) :: canopoint

canonical point object type

type(grw_pointarray_type), intent(inout) :: pntArray

growing array of points

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

spatial object type

public subroutine append_CanoNDLineToSdrLine(canoline, lineArray, spaObjArray, attr_pos)

This routine convert canonical line to seeder line array

Arguments

Type IntentOptional Attributes Name
type(tem_line_type), intent(in) :: canoline

canonical geometry line object type

type(grw_linearray_type), intent(inout) :: lineArray

growing array of line

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

spatial object type

public subroutine append_CanoNDBoxToTriangle(canoBox, triArray, spaObjArray, attr_pos)

This routine convert box to planes and then planes to triangles and add triangle to growing array and add position of triangle into spatialObj%primitive_position

Arguments

Type IntentOptional Attributes Name
type(tem_box_type), intent(in) :: canoBox

canonical geometry box object type

type(grw_trianglearray_type), intent(inout) :: triArray

growing array of triangles

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

spatial object type

public subroutine append_CanoNDPlaneToTriangle(plane, triArray, spaObjArray, attr_pos)

This routine convert plane to triangle and add triangle to growing array and add position of triangle into spatialObj%primitive_position

Arguments

Type IntentOptional Attributes Name
type(tem_plane_type), intent(in) :: plane

canonical plane geometry object type

type(grw_trianglearray_type), intent(inout) :: triArray

growing array of triangles

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

spatial object type

public subroutine append_CanoNDBoxToSdrBox(canobox, boxArray, spaObjArray, attr_pos)

This routine convert plane to triangle and add triangle to growing array and add position of triangle into spatialObj%primitive_position

Arguments

Type IntentOptional Attributes Name
type(tem_box_type), intent(in) :: canobox

canonical geometry object type

type(grw_boxarray_type), intent(inout) :: boxArray

growing array of boxes

type(grw_spatialObjArray_type), intent(inout) :: spaObjArray

growing array of geometrical objects.

integer, intent(in) :: attr_pos

spatial object type