add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements
This commit is contained in:
@@ -145,6 +145,9 @@ static std::vector<std::unique_ptr<VoxelStructure>> load_structures(
|
||||
}
|
||||
auto fragment = std::make_unique<VoxelFragment>();
|
||||
fragment->deserialize(files::read_binary_json(structFile));
|
||||
logger.info() << "fragment " << name << " has size [" <<
|
||||
fragment->getSize().x << ", " << fragment->getSize().y << ", " <<
|
||||
fragment->getSize().z << "]";
|
||||
|
||||
structures.push_back(std::make_unique<VoxelStructure>(
|
||||
load_structure_meta(name, config),
|
||||
|
||||
Reference in New Issue
Block a user