extend the default clipping plane
This commit is contained in:
parent
eb682c79f2
commit
7869959841
@ -286,7 +286,7 @@ void Camera::ResetToBounds(const vtkm::Bounds& dataBounds,
|
||||
vtkm::Float32 diagonalLength = vtkm::Magnitude(totalExtent);
|
||||
this->SetPosition(center + directionOfProjection * diagonalLength * 1.0f);
|
||||
this->SetFieldOfView(60.0f);
|
||||
this->SetClippingRange(0.1f * diagonalLength, diagonalLength * 5.0f);
|
||||
this->SetClippingRange(0.1f * diagonalLength, diagonalLength * 10.0f);
|
||||
|
||||
// Reset for 2D camera
|
||||
this->SetViewRange2D(db);
|
||||
|
Loading…
Reference in New Issue
Block a user