Команда "Перспективная проекция"

From FreeCAD Documentation
Revision as of 20:43, 16 May 2020 by Baritone (talk | contribs)

Std PerspectiveCamera

Системное название
Std PerspectiveCamera
Расположение в меню
Вид → Перспективная проекция
Верстаки
All
Быстрые клавиши
V P
Представлено в версии
-
См. также
Параллельная проекция

Описание

Команда Std PerspectiveCamera переводит камеру в активном трёхмерном виде в режим перспективы. В этом режиме объекты, которые находятся дальше от камеры, выглядят меньше, чем те, которые находятся ближе.

Two cubes with the same dimensions in perspective view

Использование

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