VOXELUTIL: bump max volume size

master
Martin Gerhardy 2022-04-28 19:49:16 +02:00
parent 6393a1ed2c
commit 1300a3b301
1 changed files with 4 additions and 4 deletions

View File

@ -70,8 +70,8 @@ voxel::RawVolume* importAsPlane(const image::ImagePtr& image, uint8_t thickness)
}
const int imageWidth = image->width();
const int imageHeight = image->height();
if (imageWidth * imageHeight * thickness > 1024 * 1024 * 4) {
Log::warn("Did not import plane - max volume size of 1024x1024 (thickness 4) exceeded (%i:%i:%i)", imageWidth, imageHeight, thickness);
if (imageWidth * imageHeight * thickness > 1024 * 1024 * 256) {
Log::warn("Did not import plane - max volume size of 1024x1024 (thickness 256) exceeded (%i:%i:%i)", imageWidth, imageHeight, thickness);
return nullptr;
}
Log::info("Import image as plane: w(%i), h(%i), d(%i)", imageWidth, imageHeight, thickness);
@ -124,8 +124,8 @@ voxel::RawVolume* importAsVolume(const image::ImagePtr& image, uint8_t maxDepth,
Log::warn("Make max volume depth uneven");
volumeDepth++;
}
if (imageWidth * imageHeight * volumeDepth > 1024 * 1024 * 4) {
Log::warn("Did not import plane - max volume size of 1024x1024 (depth 4) exceeded (%i:%i:%i)", imageWidth, imageHeight, volumeDepth);
if (imageWidth * imageHeight * volumeDepth > 1024 * 1024 * 256) {
Log::warn("Did not import plane - max volume size of 1024x1024 (depth 256) exceeded (%i:%i:%i)", imageWidth, imageHeight, volumeDepth);
return nullptr;
}
Log::info("Import image as volume: w(%i), h(%i), d(%i)", imageWidth, imageHeight, volumeDepth);