private void ReadVoxelDetails(string filename)
{
if (filename != null && File.Exists(filename))
{
MyVoxelMap.GetPreview(filename, out _size, out _contentBounds, out _voxCells, out _isValid);
RaisePropertyChanged(() => Size);
RaisePropertyChanged(() => ContentSize);
RaisePropertyChanged(() => ContentBounds);
RaisePropertyChanged(() => VoxCells);
RaisePropertyChanged(() => Volume);
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));
}
}