private void ReadVoxelDetails(string filename)
{
if (filename != null && File.Exists(filename))
{
long voxCells;
MyVoxelMap.GetPreview(filename, out _size, out _contentBounds, out voxCells, out _isValid);
RaisePropertyChanged(() => Size);
RaisePropertyChanged(() => IsValid);
Center = new Vector3D(_contentBounds.Center.X + 0.5f + PositionX, _contentBounds.Center.Y + 0.5f + PositionY, _contentBounds.Center.Z + 0.5f + PositionZ);
WorldAABB = new BoundingBoxD(PositionAndOrientation.Value.Position, PositionAndOrientation.Value.Position + new Vector3D(Size));
}
}