Std PerspectiveCamera/fr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
{{UnfinishedDocu{{#translation:}}}}
<languages/>
<languages/>

{{Docnav
|[[Std_OrthographicCamera|Std OrthographicCamera]]
|[[Std_MainFullscreen|Std MainFullscreen]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_OrthographicCamera.svg
|IconR=Std_MainFullscreen.svg
|IconC=Freecad.svg
}}

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/fr|Name=Std PerspectiveCamera|Name/fr=Caméra Perspective|MenuLocation=[[Std View Menu/fr|Affichage]] → Vue en Perspective ||Workbenches=Tous|Shortcut=P|SeeAlso=[[Std OrthographicCamera/fr|Vue Orthographique]]}}
{{GuiCommand/fr|Name=Std PerspectiveCamera|Name/fr=Caméra Perspective|MenuLocation=[[Std View Menu/fr|Affichage]] → Vue en Perspective ||Workbenches=Tous|Shortcut=P|SeeAlso=[[Std OrthographicCamera/fr|Vue Orthographique]]}}
Line 7: Line 16:
== Description ==
== Description ==


<div class="mw-translate-fuzzy">
Mettre la caméra en mode affichage en perspective.
Mettre la caméra en mode affichage en perspective.
</div>


[[Image:Std_PerspectiveCamera_example.svg]]
La vue en perspective a une profondeur tandis qu'une vue orthographique a une profondeur fixe. Vous pouvez zoomer et dézoomer. Vous pouvez juger des distances. Les caméras peuvent être éloignées de la scène.
{{Caption|Two cubes with the same dimensions in perspective view}}

[[Image:Orthographic_Perspective.gif]]

Vue en perspective à gauche, vue orthographique à droite


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Utilisation==
==Utilisation==
Choisir {{MenuCommand|Vue → [[Image:View-perspective.svg|16px]] Vue en perspective}} dans le menu supérieur.
Choisir {{MenuCommand|Vue → [[Image:View-perspective.svg|16px]] Vue en perspective}} dans le menu supérieur.
</div>
</div>

# There are several ways to invoke the command:
#* Select the {{MenuCommand|View → [[Image:Std_PerspectiveCamera.svg|16px]] Perspective view}} option from the menu.
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|P}}.

==Notes==

* It is also possible to switch to perspective view mode via the Mini-cube menu of the [[Navigation_Cube|Navigation Cube]].

==Preferences==

* 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]].


==Scripting==
==Scripting==


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

To change the view to perspective 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('Perspective')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()
}}

{{Docnav
|[[Std_OrthographicCamera|Std OrthographicCamera]]
|[[Std_MainFullscreen|Std MainFullscreen]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_OrthographicCamera.svg
|IconR=Std_MainFullscreen.svg
|IconC=Freecad.svg
}}

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

Revision as of 20:03, 9 April 2020

Caméra Perspective

Emplacement du menu
Affichage → Vue en Perspective
Ateliers
Tous
Raccourci par défaut
P
Introduit dans la version
-
Voir aussi
Vue Orthographique

Description

Mettre la caméra en mode affichage en perspective.

Two cubes with the same dimensions in perspective view

Utilisation

Choisir Vue → Vue en perspective dans le menu supérieur.

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

Notes

  • It is also possible to switch to perspective 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 perspective 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('Perspective')
FreeCADGui.ActiveDocument.ActiveView.getCameraType()