Fixed geometry in void extraction

This commit is contained in:
Your Name 2011-02-24 16:26:41 -05:00
parent bfc2cf3bcd
commit 06e649203d
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,9 @@ bool loadParticleInfo(ParticleInfo& info,
info.ranges[2][0] = f_info.get_att("range_z_min")->as_double(0);
info.ranges[2][1] = f_info.get_att("range_z_max")->as_double(0);
for (int i = 0; i < 3; i++)
info.length[i] = info.ranges[i][1] - info.ranges[i][0];
try
{
UnformattedRead f(particles);

View file

@ -14,6 +14,7 @@ struct ParticleInfo
{
ParticleVector particles;
float ranges[3][2];
float length[3];
};
bool loadParticleInfo(ParticleInfo& info,