Skip to content

Commit ef78dbb

Browse files
committed
SetUseBounds false for gridaxes actor
1 parent ace2a1f commit ef78dbb

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Lines changed: 2 additions & 2 deletions
Loading

vtkext/private/module/vtkF3DRenderer.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ void vtkF3DRenderer::ConfigureGridAxesUsingCurrentActors()
736736
{
737737
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
738738
bool show = this->AxesGridVisible;
739+
this->GridAxesActor->SetUseBounds(false);
739740
if (show)
740741
{
741742
double* up = this->GetEnvironmentUp();
@@ -1789,6 +1790,12 @@ void vtkF3DRenderer::UpdateActors()
17891790
this->ConfigureTextActors();
17901791
}
17911792

1793+
// GridAxes should not affect bounds, UseBounds must be set false before configuring the render pass.
1794+
if (!this->GridAxesConfigured)
1795+
{
1796+
this->ConfigureGridAxesUsingCurrentActors();
1797+
}
1798+
17921799
if (!this->RenderPassesConfigured)
17931800
{
17941801
this->ConfigureRenderPasses();
@@ -1799,11 +1806,6 @@ void vtkF3DRenderer::UpdateActors()
17991806
{
18001807
this->ConfigureGridUsingCurrentActors();
18011808
}
1802-
1803-
if (!this->GridAxesConfigured)
1804-
{
1805-
this->ConfigureGridAxesUsingCurrentActors();
1806-
}
18071809
}
18081810

18091811
//----------------------------------------------------------------------------

0 commit comments

Comments
 (0)