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

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Std PerspectiveCamera and the translation is 79% complete.
Outdated translations are marked like this.

Перспективная проекция

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

Описание

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

Два куба с одинаковыми размерами в перспективе

Применение

  1. :Есть несколько способов вызвать команду:
    • Выберите в меню опцию Вид → Перспективная проекция.
    • Используйте клавиатурное сокращение: V, затем P.

Настройки

  • 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.

Программирование

Смотрите так же: Основы составления скриптов в FreeCAD.

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