append_CanoNDBoxToTriangle Subroutine

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