mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
Fixed geometry in void extraction
This commit is contained in:
parent
bfc2cf3bcd
commit
06e649203d
2 changed files with 4 additions and 0 deletions
|
@ -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][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);
|
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
|
try
|
||||||
{
|
{
|
||||||
UnformattedRead f(particles);
|
UnformattedRead f(particles);
|
||||||
|
|
|
@ -14,6 +14,7 @@ struct ParticleInfo
|
||||||
{
|
{
|
||||||
ParticleVector particles;
|
ParticleVector particles;
|
||||||
float ranges[3][2];
|
float ranges[3][2];
|
||||||
|
float length[3];
|
||||||
};
|
};
|
||||||
|
|
||||||
bool loadParticleInfo(ParticleInfo& info,
|
bool loadParticleInfo(ParticleInfo& info,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue