Click or drag to resize

ViewportInfoChangeToSymmetricFrustum Method

If needed, adjusts the current frustum so it has the specified symmetries and adjust the camera location so the target plane remains visible.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool ChangeToSymmetricFrustum(
	bool isLeftRightSymmetric,
	bool isTopBottomSymmetric,
	double targetDistance


Type: SystemBoolean
If true, the frustum will be adjusted so left = -right.
Type: SystemBoolean
If true, the frustum will be adjusted so top = -bottom.
Type: SystemDouble
If projection is not perspective or target_distance is RhinoMath.UnsetValue, then this parameter is ignored. If the projection is perspective and targetDistance is not RhinoMath.UnsetValue, then it must be > 0.0 and it is used to determine which plane in the old frustum will appear unchanged in the new frustum.

Return Value

Type: Boolean
Returns true if the viewport has now a frustum with the specified symmetries.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also