Std ViewTrimetric/en: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
|[[Std_ViewDimetric|ViewDimetric]]
|[[Std_ViewHome|ViewHome]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewDimetric.svg
|IconR=Std_ViewHome.svg
|IconC=Freecad.svg
}}

{{GuiCommand
{{GuiCommand
|Name=Std ViewTrimetric
|Name=Std ViewTrimetric
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Axonometric → Trimetric
|MenuLocation=View → Standard views → Axonometric → Trimetric
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_ViewIsometric|ViewIsometric]], [[Std_ViewDimetric|ViewDimetric]]
|SeeAlso=[[Std_ViewIsometric|Std ViewIsometric]], [[Std_ViewDimetric|Std ViewDimetric]]
|Empty=1
}}
}}


==Description==
==Description==


[[Std_ViewTrimetric|Std ViewTrimetric]] command puts the camera in the [[3D view|3D view]] in [https://en.wikipedia.org/wiki/Axonometric_projection#Three_types axonometric trimetric] projection, with a view direction {{incode|[-0.4095, 0.7094, -0.5735]}}.
The '''Std ViewTrimetric''' command realigns the camera in the active [[3D_view|3D view]] to obtain a [https://en.wikipedia.org/wiki/Axonometric_projection#Three_types trimetric] view. For a truly trimetric view the 3D view must be in [[Std_OrthographicCamera|orthographic mode]], but the command also works if the view is in [[Std_PerspectiveCamera|perspective mode]].


[[File:FreeCAD_views_front.svg]]
[[Image:Std_ViewTrimetric_example.svg]]
{{Caption|The [[Std_AxisCross|axis cross]] and a cube in trimetric view}}


==Usage==
==Usage==


* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → Axonometric → [[Std_ViewTrimetric|Trimetric]]}}.
# Select the {{MenuCommand|View → Standard views → Axonometric → [[Image:Std_ViewTrimetric.svg|16px]] Trimetric}} option from the menu.


== Scripting ==
==Scripting==


{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
The trimetric view can be set from the [[Python console|Python console]].


It is a method of the {{incode|ActiveView}} of the {{incode|ActiveDocument}}. The {{incode|ActiveView}} only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.
To change to trimetric view use the {{incode|viewTrimetric}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


{{Code|code=
{{Code|code=
import FreeCADGui as Gui
import FreeCADGui

Gui.ActiveDocument.ActiveView.viewTrimetric()
FreeCADGui.ActiveDocument.ActiveView.viewTrimetric()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}



{{Docnav
Gui.ActiveDocument.ActiveView.getViewDirection()
|[[Std_ViewDimetric|ViewDimetric]]
|[[Std_ViewHome|ViewHome]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewDimetric.svg
|IconR=Std_ViewHome.svg
|IconC=Freecad.svg
}}
}}



Latest revision as of 14:59, 6 January 2021

Std ViewTrimetric

Menu location
View → Standard views → Axonometric → Trimetric
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std ViewIsometric, Std ViewDimetric

Description

The Std ViewTrimetric command realigns the camera in the active 3D view to obtain a trimetric view. For a truly trimetric view the 3D view must be in orthographic mode, but the command also works if the view is in perspective mode.

The axis cross and a cube in trimetric view

Usage

  1. Select the View → Standard views → Axonometric → Trimetric option from the menu.

Scripting

See also: FreeCAD Scripting Basics.

To change to trimetric view use the viewTrimetric method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewTrimetric()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()