3D export from Therion

Techniques, equipment and issues. Also visit the NSS Survey & Cartography Section.

Moderator: Moderators

3D export from Therion

Postby Martin Sluka » Oct 22, 2015 3:40 am

Therion and 3D

Therion is able to export 3D model in format .lox based on LRUD data, shape of walls in plan and passage height informations recently. If the map is drawn in correct way these models are quite good. To view the model one should use internal viewer of Therion named Loch. The Loch has feature to export model in the VTK format. And several softwares for manipulating with 3D data for example CloudCompare or Paraview are able to import this VTK format.

CloudCompare is able to export next formats:

BIN .bin CloudCompare own format
ASCII .asc,.txt,.xyz,.neu,.pts ASCII point cloud file (X,Y,Z,etc.)
LAS .las ASPRS lidar point clouds
E57 .e57 ASTM E57 file format
PCD .pcd Point Cloud Library format
PLY .ply Stanford 3D geometry format (cloud or mesh)
OBJ .obj Wavefront mesh
VTK .vtk VTK file format (triangular mesh or cloud only)
STL .stl STereoLithography file format (mesh)
OFF .off Object File Format (mesh)
FBX .fbx Autodesk (Filmbox) File Format
DXF .dxf Autocad DXF format
SHP .shp ESRI Shape file format
RASTER .geotiff, etc. Common raster formats (GDAL)
PV .pv Point cloud + scalar field
PN .pn Point cloud + normals
Sinusx .sx Sinusx curves

ParaView is able to work with next formats:

ParaView files
VTK files
Parallel (partitioned) VTK files
VTK MultiBlock (MultiGroup, Hierarchical, Hierarchical Box) files
Legacy VTK files
Parallel (partitioned) legacy VTK files
EnSight files
EnSight Master Server files
Exodus files
BYU files
XDMF files
PLOT3D files
SpyPlot CTH files
HDF5 raw image data files
DEM files
VRML files
PLY Polygonal files
Protein Data Bank files
XMol Molecule files
Stereo Lithography files
Gaussian Cube files
Raw (binary) files
AVS files
Meta Image files
Facet files
PNG files
SAF files
LS-Dyna files

So you may for example calculate surface and volume of cave - thanks to Filippo Gregori:

Note: If you use a coordinates on the fix point/s as a result could be quite large numbers of x and y coordinates. Because there is a problem (maybe only my) to export such data to MeshLab you should comment the fix point/s before generation of Loch model or subtract the big part of x and y coordinates in ParaView, if you know how to do it (me not till yet :) ).

1) Export the lox file to vtk format
2) With Paraview software I opened the file vtk
3) Save the file as .x3d
4) Open the file x3d in Meshlab software
6) Apply the filter: Filters -> Quality measure and computation -> compute geometric Measures
7) Open log window: View -> Show Layer dialog
8) Read the lines Volume Mesh and Mesh Surface

Or you may print 3D model of your cave system.
Last edited by Martin Sluka on Oct 28, 2015 4:55 am, edited 2 times in total.
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 380
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: 3D export from Therion

Postby Martin Sluka » Oct 22, 2015 5:02 am

Cave in Loch:
Image

Cave in ParaView
Image

Cave in MeshLab
Image

Results from MeshLab:
Mesh Bounding Box Size 68.374199 153.150894 62.903999
Mesh Bounding Box Diag 179.128845
Mesh Volume is 43708.933594
Mesh Surface is 21756.070312
Thin shell barycenter -14.023410 -37.206078 -14.819854
Center of Mass is -15.087652 -42.666534 -16.276274
Inertia Tensor is :
| 20330152.000000 -3620606.750000 -1168910.625000 |
| -3620606.750000 6608607.000000 -4662930.000000 |
| -1168910.625000 -4662930.000000 21506810.000000 |
Principal axes are :
| 0.231695 0.934567 0.270003 |
| 0.970067 -0.242716 0.007686 |
| -0.072717 -0.260140 0.962829 |
axis momenta are :
| 4363844.500000 21226780.000000 22854932.000000 |
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 380
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: 3D export from Therion

Postby Martin Sluka » Nov 20, 2015 5:12 am

The easiest way to publish 3D model on web:

Export model in .lox format from Therion. Open it in 3D viewer of Therion - Loch. Export as VTK file. Open this file in ParaView software (free) and save it as WebGL format to empty folder. Open including html file in a browser supporting WebGL (Firefox, Opera, ...). Modify that html file according your needs and publish it on web. WebGL is widely used for game development, so you may modify the code and add skin, walk inside a cave, etc.

check - it is simple straight export without any modifications: http://radavc.speleo.sk
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 380
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: 3D export from Therion

Postby driggs » Nov 23, 2015 1:20 am

Martin Sluka wrote:Therion is able to export 3D model in format .lox based on LRUD data, shape of walls in plan and passage height informations recently.


Hi Martin,

I've downloaded the latest Therion binary release, 5.3.16, and am trying to generate 3D models based on DistoX splay shots (not based on LRUD values).

Therion recognizes my splays as "splays", but Loch doesn't seem to model passage dimensions using the splays. I've turned on "extrapolate all missing walls", and it generates a simple "pipe" that appears to be proportional to the centerline length. You can see below, where I've also told it to display splays, that the walls show no relationship to the splay shots coming off the centerline stations.

Does Therion support actually using splay shots for 3D modeling, and if so, can you offer any clues as to how to make it work?

I'm building my models like this:

Code: Select all
export model -enable all -wall-source centerline -output cave.lox


Thanks!

Image
User avatar
driggs
NSS Hall Of Fame Poster
 
Posts: 495
Joined: Sep 12, 2005 9:40 pm
Location: State of Jefferson
Name: David A. Riggs
NSS #: 56189
Primary Grotto Affiliation: Monongahela
  

Re: 3D export from Therion

Postby Martin Sluka » Nov 23, 2015 2:02 am

driggs wrote:Does Therion support actually using splay shots for 3D modeling, and if so, can you offer any clues as to how to make it work?


You are right, Therions doesn't use splay shots to generate 3D model till yet.

It uses passage shape, passage height symbol instead only. So models from Therion are quite good looking, not as far from real situation as simple tube or rectangular models. But not splay shots.

I hope, Stacho will add that feature in the next release, but as with any other man which has work and family it is not so simple as when he was student.

There is a way to define triangles in VTK file manually but it is very time consuming. Anyway I'm tested it now.

m.
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 380
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  


Return to Survey and Cartography Forum

Who is online

Users browsing this forum: No registered users

cron