Std OrthographicCamera/en: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
|[[Std_ViewCreate|Std ViewCreate]]
|[[Std_PerspectiveCamera|Std PerspectiveCamera]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewCreate.svg
|IconR=Std_PerspectiveCamera.svg
|IconC=Freecad.svg
}}

{{GuiCommand
{{GuiCommand
|Name=Std OrthographicCamera
|Name=Std OrthographicCamera
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Orthographic view
|MenuLocation=View → Orthographic view
|Workbenches=All
|Workbenches=All
|Shortcut=O
|Shortcut={{KEY|V}} {{KEY|O}}
|SeeAlso=[[Std PerspectiveCamera|Perspective View]]
|SeeAlso=[[Std_PerspectiveCamera|Std PerspectiveCamera]]
}}
}}


==Description==
==Description==
Puts the camera in orthographic view mode.


The '''Std OrthographicCamera''' command switches the camera in the active [[3D_view|3D view]] to orthographic view mode. In this mode, objects that are further from the camera do not appear smaller than those that are closer.
'''''Orthographic''''' (according to Wikipedia) is "''a means of representing a three-dimensional object in two dimensions...''"


[[Image:Std_OrthographicCamera_example.svg]]
Basically, Orthographic is a fixed depth. You can't zoom in or out. There is no distance from the camera.
{{Caption|Two cubes with the same dimensions in orthographic view}}


==Usage==
Perspective has depth. You can zoom in and out. You can judge distances. Cameras can be distanced from the scene.


# There are several ways to invoke the command:
Simply put, orthographic is what would happen if you squished everything in the scene (along the cameras view axis) and stuck it right against the camera.
#* Select the {{MenuCommand|View → [[Image:Std_OrthographicCamera.svg|16px]] Orthographic view}} option from the menu.
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|O}}.


==Notes==
[[Image:Orthographic_Perspective.gif]]


* It is also possible to switch to orthographic view mode via the Mini-cube menu of the [[Navigation_Cube|Navigation Cube]].
{{Caption|Perspective on the left, Orthographic on the right}}


==Usage==
==Preferences==
Choose {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → [[Image:View-isometric.png|16px]] Orthographic view}} from the top menu.


* The camera type can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Display → 3D View → Camera type}}. The selected type will be used for all 3D views of all opened documents and also for new documents. See [[Preferences_Editor#3D_View|Preferences Editor]].
{{Std Base navi}}

==Scripting==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

To change the view to orthographic use the {{incode|setCameraType}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.

{{Code|code=
import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.setCameraType('Orthographic')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()
}}

{{Docnav
|[[Std_ViewCreate|Std ViewCreate]]
|[[Std_PerspectiveCamera|Std PerspectiveCamera]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewCreate.svg
|IconR=Std_PerspectiveCamera.svg
|IconC=Freecad.svg
}}


{{Std Base navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 20:03, 9 April 2020

Std OrthographicCamera

Menu location
View → Orthographic view
Workbenches
All
Default shortcut
V O
Introduced in version
-
See also
Std PerspectiveCamera

Description

The Std OrthographicCamera command switches the camera in the active 3D view to orthographic view mode. In this mode, objects that are further from the camera do not appear smaller than those that are closer.

Two cubes with the same dimensions in orthographic view

Usage

  1. There are several ways to invoke the command:
    • Select the View → Orthographic view option from the menu.
    • Use the keyboard shortcut: V then O.

Notes

  • It is also possible to switch to orthographic view mode via the Mini-cube menu of the Navigation Cube.

Preferences

  • The camera type can be changed in the preferences: Edit → Preferences... → Display → 3D View → Camera type. The selected type will be used for all 3D views of all opened documents and also for new documents. See Preferences Editor.

Scripting

See also: FreeCAD Scripting Basics.

To change the view to orthographic use the setCameraType method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.setCameraType('Orthographic')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()