void fillEmpty(StructureBoundingBox bb, int value) {
if (bb.minX > mapbb.maxX || mapbb.minX > bb.maxX || bb.minZ > mapbb.maxZ || mapbb.minZ > bb.maxZ) {
return;
}
StructureBoundingBox ibb = MuonUtils.intersectionBoundingBox(bb, mapbb);
for (int xoffs = ibb.minX - mapbb.minX; xoffs <= ibb.maxX - mapbb.minX; ++xoffs) {
for (int zoffs = ibb.minZ - mapbb.minZ; zoffs <= ibb.maxZ - mapbb.minZ; ++zoffs) {
if (heightmap[xoffs][zoffs] == -1) {
heightmap[xoffs][zoffs] = value;
if (value != -1) {
isBlank = false;
}
}
}
}
}
MuonHeightMap.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:muon
作者:
评论列表
文章目录