Std PerspectiveCamera/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
Line 44: Line 44:
==Scripting==
==Scripting==


{{Emphasis|Смотри так же:}} [[FreeCAD_Scripting_Basics/ru|Основы скриптов в FreeCAD]].
{{Emphasis|Смотрите так же:}} [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов в FreeCAD]].


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

Revision as of 00:17, 3 August 2021

Std PerspectiveCamera

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

Описание

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

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

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

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

Примечания

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

Настройки

  • 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

Смотрите так же: Основы составления скриптов в 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()