feat/vtk-3d-view #7
|
|
@ -292,6 +292,7 @@ vtkSmartPointer<vtkActor> TileBasemap::buildFlat(int z, int x, int y,
|
||||||
actor->SetMapper(mapper);
|
actor->SetMapper(mapper);
|
||||||
actor->SetTexture(tex);
|
actor->SetTexture(tex);
|
||||||
actor->GetProperty()->LightingOff(); // 底图不受场景光照
|
actor->GetProperty()->LightingOff(); // 底图不受场景光照
|
||||||
|
actor->SetUseBounds(false); // 底图不参与包围盒/相机取景:否则坐标轴/适配被~公里级底图撑大
|
||||||
return actor;
|
return actor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -417,6 +418,7 @@ vtkSmartPointer<vtkActor> TileBasemap::buildWarped(int sz, int sx, int sy, int d
|
||||||
actor->SetMapper(mapper);
|
actor->SetMapper(mapper);
|
||||||
actor->SetTexture(tex);
|
actor->SetTexture(tex);
|
||||||
actor->GetProperty()->LightingOff();
|
actor->GetProperty()->LightingOff();
|
||||||
|
actor->SetUseBounds(false); // 同 buildFlat:底图不参与包围盒/相机取景
|
||||||
return actor;
|
return actor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue