Discussion:
[Therion] Export to 3D processing softwares
Martin Sluka
2015-10-21 16:59:43 UTC
Permalink
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:

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
Footleg
2015-10-21 21:35:18 UTC
Permalink
Looks like a great topic to add to the wiki Martin. I used the export to
vtk and import into Paraview before when creating a model for 3D printing.
But beyond that point I was not involved in processing the data further
(the person arranging the 3D printing handled it from here on). I am sure
there is more to learn which can then be added to the topic if you start a
wiki page for this.

Footleg
Post by Martin Sluka
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.
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 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
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
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Pavel Herich
2015-10-22 08:21:58 UTC
Permalink
I have tried this with two small and simple caves to see, how it will
make the tranformations and computings (just to be able to controll it),
but unfortunately it seems to be extremely inaccurate with surfaces or
even volumes due to incorrect tranformation. Or am I the one mistaken?
Palo
Post by Footleg
Looks like a great topic to add to the wiki Martin. I used the export
to vtk and import into Paraview before when creating a model for 3D
printing. But beyond that point I was not involved in processing the
data further (the person arranging the 3D printing handled it from
here on). I am sure there is more to learn which can then be added to
the topic if you start a wiki page for this.
Footleg
Post by Martin Sluka
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.
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 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 -
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
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion [1]
------
[1] http://mailman.speleo.sk/mailman/listinfo/therion
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Martin Sluka
2015-10-22 09:29:39 UTC
Permalink
You are too fast, your Loch model is somewhere incorrect - check attached pictures. May you send the therion data too?

m.
Looks like a great topic to add to the wiki Martin. I used the export to vtk and import into Paraview before when creating a model for 3D printing. But beyond that point I was not involved in processing the data further (the person arranging the 3D printing handled it from here on). I am sure there is more to learn which can then be added to the topic if you start a wiki page for this.
Footleg
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.
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 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
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
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion <http://mailman.speleo.sk/mailman/listinfo/therion>
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Martin Sluka
2015-10-22 09:32:02 UTC
Permalink
You are too fast, your Loch model is somewhere incorrect - check attached pictures. May you send the therion data too?

m.
Looks like a great topic to add to the wiki Martin. I used the export to vtk and import into Paraview before when creating a model for 3D printing. But beyond that point I was not involved in processing the data further (the person arranging the 3D printing handled it from here on). I am sure there is more to learn which can then be added to the topic if you start a wiki page for this.
Footleg
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.
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 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
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
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion <http://mailman.speleo.sk/mailman/listinfo/therion>
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Martin Sluka
2015-10-22 09:35:59 UTC
Permalink
Correct model looks as this:
Martin Sluka
2015-10-22 09:42:02 UTC
Permalink
Mesh Bounding Box Size 24.910589 62.732632 24.883059
Mesh Bounding Box Diag 71.938080
Mesh Volume is 2614.356201
Mesh Surface is 2189.087402
Thin shell barycenter -19.268660 -21.685312 -10.670184
Center of Mass is -12.661084 -3.146624 -6.577620
Inertia Tensor is :
| 797499.375000 -584521.375000 -130059.195312 |
| -584521.375000 295041.500000 -126873.382812 |
| -130059.195312 -126873.382812 892615.562500 |
Principal axes are :
| -0.546083 -0.819744 -0.172664 |
| 0.025174 -0.222074 0.974705 |
| -0.837353 0.527923 0.141907 |
axis momenta are :
| -121068.546875 918162.937500 1188062.000000 |

MeshLab
Martin Sluka
2015-10-22 09:58:16 UTC
Permalink
The same cave but after new explorations:

Loch:



ParaView




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 |
Pavel Herich
2015-10-22 13:09:03 UTC
Permalink
Well, finally i get the (part of) conclusion, why it doesnÂŽt work
properly:
1. there is no importance of line:wall orientation in th2 as Martin
suggested
2. but it is because i have used FIXED POSITIONED 3d model. It has the
result in destroyed 3d in Meshlab and prevents proper computation of
volume and surface. CS IJTSK and UTM33 as well i have tried with no
succes (even there can be seen small difference). Since there is need to
compute all my data which consist 65 km of cave passages and thousands
fixed stations, I do not see any solution on the horizont, but there
should be something to solve it..?.
Palo
Post by Martin Sluka
ParaView
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
| 20330152.000000 -3620606.750000 -1168910.625000 |
| -3620606.750000 6608607.000000 -4662930.000000 |
| -1168910.625000 -4662930.000000 21506810.000000 |
| 0.231695 0.934567 0.270003 |
| 0.970067 -0.242716 0.007686 |
| -0.072717 -0.260140 0.962829 |
| 4363844.500000 21226780.000000 22854932.000000 |
Martin Sluka
2015-10-22 16:12:21 UTC
Permalink
Pavel is right, I apologize myself.

The problem is in ParaView, it is not able to work with coordinates correctly. We have to find a solution, so study, study, study!

m.
1. there is no importance of line:wall orientation in th2 as Martin suggested
2. but it is because i have used FIXED POSITIONED 3d model. It has the result in destroyed 3d in Meshlab and prevents proper computation of volume and surface. CS IJTSK and UTM33 as well i have tried with no succes (even there can be seen small difference). Since there is need to compute all my data which consist 65 km of cave passages and thousands fixed stations, I do not see any solution on the horizont, but there should be something to solve it..?.
Palo
Post by Martin Sluka
ParaView
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
| 20330152.000000 -3620606.750000 -1168910.625000 |
| -3620606.750000 6608607.000000 -4662930.000000 |
| -1168910.625000 -4662930.000000 21506810.000000 |
| 0.231695 0.934567 0.270003 |
| 0.970067 -0.242716 0.007686 |
| -0.072717 -0.260140 0.962829 |
| 4363844.500000 21226780.000000 22854932.000000 |
<cs_jtsk.x3d><cs_utm33.x3d><j_pod_cestou_jtsk.lox><j_pod_cestou_no_cs.lox><j_pod_cestou_utm33.lox><no_cs.x3d>
Martin Sluka
2015-10-22 13:18:38 UTC
Permalink
Pavel Herich
2015-10-22 13:35:19 UTC
Permalink
Martin, probably You haven´t understood the point - sent models are
based on proper drawing (point 1.); there are no "strange objects" in
there, unless "outline in" walls.. (Anyway I did try to rotate the walls
in th2 as well with no change, - but of course I respect this topic)
I noticed destroyed models in Meshlab (Paraview is maybe the source of
troubles) just when fixed points were present in source.
Palo
1. That is the main condition for good 3D model. Therion is based on
theory of oriented graphs and to ignore this fact is direct way to
hell.
2. The problem is not in MeshLab, the wire model was from ParaView and
anybody may see that there are several very strange objects inside the
model.
There is very easy way to solve it - check and correct all 65 km of
your drawing. Not any joke.
BTW, my model has fixed point too.
m.s.
Well, finally i get the (part of) conclusion, why it doesn´t work
1. there is no importance of line:wall orientation in th2 as Martin
suggested
2. but it is because i have used FIXED POSITIONED 3d model. It has
the
result in destroyed 3d in Meshlab and prevents proper computation of
volume and surface. CS IJTSK and UTM33 as well i have tried with no
succes (even there can be seen small difference). Since there is
need to
compute all my data which consist 65 km of cave passages and
thousands
fixed stations, I do not see any solution on the horizont, but there
should be something to solve it..?.
Palo
Post by Martin Sluka
ParaView
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
| 20330152.000000 -3620606.750000 -1168910.625000 |
| -3620606.750000 6608607.000000 -4662930.000000 |
| -1168910.625000 -4662930.000000 21506810.000000 |
| 0.231695 0.934567 0.270003 |
| 0.970067 -0.242716 0.007686 |
| -0.072717 -0.260140 0.962829 |
| 4363844.500000 21226780.000000 22854932.000000 |
Wookey
2015-10-22 17:14:21 UTC
Permalink
+++ Martin Sluka [2015-10-22 13:18 +0000] wrote:

[a completely blank email]

Please fix your mail client to actually send some text Martin. The text
part of this (which is what I get to read) was empty.

Wookey
--
Principal hats: Linaro, Debian, Wookware, ARM
http://wookware.org/
Martin Sluka
2015-10-22 19:04:19 UTC
Permalink
Sorry, there was a two way conversation about the same think and it is possible I made a mistake.

My last mail was:

Pavel is right, I apologize myself.

The problem is in ParaView, it is not able to work with coordinates correctly. We have to find a solution, so study, study, study!

m.
Post by Wookey
[a completely blank email]
Please fix your mail client to actually send some text Martin. The text
part of this (which is what I get to read) was empty.
Wookey
--
Principal hats: Linaro, Debian, Wookware, ARM
http://wookware.org/
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Martin Sluka
2015-10-30 10:26:27 UTC
Permalink
Marco Menchise
2015-10-31 12:24:29 UTC
Permalink
Thanks for the very useful hint, Martin!

I think it is currently one of the best options to export 3D models on the
web.

However, it would be useful to have also labels (such as station names,
entrance names and altitudes) in the model. I played a little with vkt and
Paraview but I didn't manage to get anything.

Does anybody know if such an annotation is possible?

Marco
ParaView software is able to export model to WebGL format. It is better to
do such export to empty folder, because there are about 15 files exported.
One of them is .html file which is possible to open in a browser and rotate
model in browser's windov.

m.s.
Martin Sluka
2015-10-31 18:04:09 UTC
Permalink
I played a little with vkt and Paraview but I didn't manage to get anything.
:) ya Therion is extremely user friendly compared to ParaView.

m.
Marco Menchise
2015-10-31 18:40:06 UTC
Permalink
I mean I was not able to annotation, I only got the 3D model :-)
I played a little with vkt and Paraview but I didn't manage to get anything.
:) ya Therion is extremely user friendly compared to ParaView.
m.
_______________________________________________
Therion mailing list
http://mailman.speleo.sk/mailman/listinfo/therion
Loading...