Std PerspectiveCamera/fr: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 21: Line 21:
== Description ==
== Description ==


La commande '''Std Vue en Perspective''' fait passer la vision du mode actif [[3D_view/fr|vue 3D]] en mode de vue en perspective. Dans ce mode, les objets qui sont plus éloignés de l'appareil photo apparaissent plus petits que ceux qui sont plus proches.
<div class="mw-translate-fuzzy">
Mettre la caméra en mode affichage en perspective.
</div>


[[Image:Std_PerspectiveCamera_example.svg]]
[[Image:Std_PerspectiveCamera_example.svg]]

Revision as of 13:07, 13 April 2020

Std Vue en perspective

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

Description

La commande Std Vue en Perspective fait passer la vision du mode actif vue 3D en mode de vue en perspective. Dans ce mode, les objets qui sont plus éloignés de l'appareil photo apparaissent plus petits que ceux qui sont plus proches.

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()