rg2 / xreg

Library and executables for modeling and registration applications in medical image analysis. Particular emphasis on intraoperative fluoroscopic (X-ray) navigation via 2D/3D registration.
MIT License
91 stars 18 forks source link

Visualization of meshes stored in HDF5 files fails on Windows #2

Closed rg2 closed 3 years ago

rg2 commented 3 years ago

From the wiki section on simulated fluoroscopy (https://github.com/rg2/xreg/wiki/Walkthrough%3A-Simulated-Fluoroscopy), the following command does not show the expected interactive scene and instead silently exits:

xreg-draw-xray-scene -i example1_1_pd_003.h5 pao_w_kwire_mesh.h5 example1_1_pose_003.h5

xreg-show-mesh pao_w_kwire_mesh.h5 has the same issue.

STL and PLY meshes created from the same volume work as expected.

This only happens when running on Windows - Linux and Mac work as expected.

rg2 commented 3 years ago

This was caused by a bug that interpreted std::size_t as a 32-bit unsigned integer instead of 64-bit. Fixed in 036e131. This also fixes a bug with I/O of registration debug data files on Windows.