Commit d99fda88 authored by wangdawei's avatar wangdawei

test

parent 5d79dca7
...@@ -236,10 +236,10 @@ void MeshArea::reSetupNeighBorMesh() ...@@ -236,10 +236,10 @@ void MeshArea::reSetupNeighBorMesh()
} }
bool MeshArea::checkBlockAtAreaToLoad( bool MeshArea::checkBlockAtAreaToLoad(
const Vector2i &shiftedIndexToLoad) const Vector2i &shiftedIndexToCheck)
{ {
LOG(INFO) << "shiftedIndexToLoad: " << shiftedIndexToLoad.transpose(); LOG(INFO) << "shiftedIndexToCheck: " << shiftedIndexToCheck.transpose();
Vector2i centerIndex(shiftedIndexToLoad.x(), shiftedIndexToLoad.y()); Vector2i centerIndex(shiftedIndexToCheck.x(), shiftedIndexToCheck.y());
for(unsigned int i = 0; i < checkNeighbors_.size(); i++){ for(unsigned int i = 0; i < checkNeighbors_.size(); i++){
Vector2i curr_index = centerIndex + checkNeighbors_[i]; Vector2i curr_index = centerIndex + checkNeighbors_[i];
const BlockContent &blockContent = blockAreaTable_[curr_index.x()][curr_index.y()]; const BlockContent &blockContent = blockAreaTable_[curr_index.x()][curr_index.y()];
...@@ -270,6 +270,7 @@ void MeshArea::loadBlockAtArea(const Vector3d &position) ...@@ -270,6 +270,7 @@ void MeshArea::loadBlockAtArea(const Vector3d &position)
uint16_t blockCntLoaded = 0; uint16_t blockCntLoaded = 0;
Vector2i centerIndex = Vector2i centerIndex =
calShiftedIndex(position.x(), position.y()); calShiftedIndex(position.x(), position.y());
LOG(INFO) << "shiftedIndexToLoad: " << centerIndex.transpose();
vector<Vector2i> neighbors; vector<Vector2i> neighbors;
if(fstLoadMap){ if(fstLoadMap){
neighbors = firstLoadNeighbors_; neighbors = firstLoadNeighbors_;
......
...@@ -263,7 +263,7 @@ private: ...@@ -263,7 +263,7 @@ private:
void reSetupNeighBorMesh(); void reSetupNeighBorMesh();
bool checkBlockAtAreaToLoad(const Vector2i &shiftedIndexToLoad); bool checkBlockAtAreaToLoad(const Vector2i &shiftedIndexToCheck);
void loadBlockAtAreaByBlh(const Vector2d &bl); void loadBlockAtAreaByBlh(const Vector2d &bl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment