fix(vtk): 底图瓦片SetUseBounds(false)-不参与包围盒/相机取景,修复勾第二个ds后坐标轴被底图撑到公里级
This commit is contained in:
parent
d27ef37a24
commit
23ed390faf
|
|
@ -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