This module provides stl data type and routine to load all stl files and store them in stl_node_type
\author
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private, | parameter | :: | stl_ascii | = | 1 | |
integer, | private, | parameter | :: | stl_bin | = | 2 |
interface to write out stl filename in lua format to a file
Write out a stlHead shape in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(in) | :: | me | stlHead types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf | Aotus type handling the output to the file in lua format |
Write out an array of stlHeads in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(in) | :: | me(:) | stlHead types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf | Aotus type handling the output to the file in lua format |
Triangle information for all the STLs
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(tem_stlHead_type), | private, | allocatable | :: | head(:) | Header information loaded from stl and config file |
||
real(kind=rk), | private, | allocatable | :: | nodes(:,:) | List off all the nodes listed in the STL files size: 1st dimension = 3 (x,y,z) , 2nd dimension = nNodes |
||
integer, | private, | allocatable | :: | tri_node(:,:) | Pointers to node array for each triangle tri_node(1:3, iTris) has three nodes position of each triangle size: 1st dimension = 3 (3 nodes), 2nd dimension = nTris |
||
integer, | private | :: | nNodes | Number of nodes |
|||
integer, | private | :: | nTris | Number of triangles |
This type contains STL information read from the Lua configuration.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=PathLen), | private | :: | filename | ||||
integer, | private | :: | fileformat | ||||
integer, | private | :: | nSolids | ||||
integer, | private | :: | nTris | ||||
integer, | private | :: | nTexts | ||||
integer, | private | :: | nNodes | ||||
integer, | private | :: | id |
Compute, if the triangles in stl intersects the cube.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlData_type), | intent(in) | :: | stl_data | |||
type(tem_cube_type), | intent(in) | :: | cube |
This routine loads STL files from config and reads the triangles from the files into the dynamic array of triangles.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlData_type), | intent(out) | :: | stl_data | Array array of triangles in stlData |
||
type(tem_transformation_type), | intent(in) | :: | transform | transformation for spatial object |
||
type(flu_State) | :: | conf | Lua state |
|||
integer, | intent(in) | :: | thandle |
This routine loads stl_files table from configuration file Need to look for: * filename (mandatory) * fileformat (default binary)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(out), | allocatable | :: | me(:) | contain stl files information from config file |
|
type(flu_State) | :: | conf | ||||
integer, | intent(in) | :: | thandle |
This routine load stl_files table from configuration file Need to look for: * filename (mandatory) * fileformat (default binary)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(inout) | :: | me | contain stl files information from config file |
||
type(flu_State) | :: | conf | ||||
integer, | intent(in) | :: | thandle |
Read in all STL files from disk which are specified in the config file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlData_type), | intent(inout) | :: | stl_data | stl data of current spatial object |
Write out an array of stlHeads in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(in) | :: | me(:) | stlHead types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf | Aotus type handling the output to the file in lua format |
Write out a stlHead shape in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stlHead_type), | intent(in) | :: | me | stlHead types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf | Aotus type handling the output to the file in lua format |