Save point set to file support in MNGeoRecon

20 Aug 2011

As requested by reader Jin, I added a small but probably useful feature to MNGeoRecon. From version 1.2 on it is possible to save the selected point set X(k), i.e. the projected point set, to an .obj file of choice. The resulting file will first list point coordinates for each point and thereafter vertex normals for each point in the same order. Here’s an example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# ----------------------------------------------------------------------
# MNGeoRecon iteration point export
#
# Created on Sat Aug 20 15:04:11 CEST 2011
# Total number of points: 500
#
# MNGeoRecon is available on http://www.maneumann.com
# ----------------------------------------------------------------------

v 0.48998146247597946 -0.18271761872019082 -0.0829339208557988
v 0.46302914269168144 -0.1443458936678494 -0.13340696642648717
v 0.39843450449279294 0.005884934692263533 -0.17219122412609567
...

# Estimated normals for each point
vn 0.059767976 0.908114 0.41443542
vn 0.1833163 0.7403643 0.6467271
vn 0.497972 -0.009690021 0.8671389

More information about the .obj file format can be obtained here.