Std ViewTrimetric: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

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

<!--T:1-->
<!--T:1-->
{{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]], [[Std_OrthographicCamera|Std OrthographicCamera]], [[Std_PerspectiveCamera|Std PerspectiveCamera]]
|Empty=1
}}
}}


Line 13: Line 25:


<!--T:3-->
<!--T:3-->
[[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 changes the view direction of the active [[3D_view|3D view]] to obtain a [https://en.wikipedia.org/wiki/Axonometric_projection#Three_types trimetric] view. But the view will only be trimetric if it is in [[Std_OrthographicCamera|orthographic mode]].


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


==Usage== <!--T:4-->
==Usage== <!--T:4-->


<!--T:5-->
<!--T:5-->
* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → Axonometric → [[Std_ViewTrimetric|Trimetric]]}}.
# Select the {{MenuCommand|View → Standard views → Axonometric → Trimetric}} option from the menu.


== Scripting == <!--T:6-->
==Scripting== <!--T:6-->


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


<!--T:8-->
<!--T:8-->
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 the active view to trimetric use the {{incode|viewTrimetric}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


</translate>
</translate>
{{Code|code=
{{Code|code=
import FreeCADGui as Gui
import FreeCADGui
Gui.ActiveDocument.ActiveView.viewTrimetric()


Gui.ActiveDocument.ActiveView.getViewDirection()
FreeCADGui.ActiveDocument.ActiveView.viewTrimetric()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}
}}
<translate>
<translate>

{{Docnav
|[[Std_ViewCreate|Std ViewCreate]]
|[[Std_PerspectiveCamera|Std PerspectiveCamera]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewCreate.svg
|IconR=Std_PerspectiveCamera.svg
|IconC=Freecad.svg
}}


</translate>
</translate>

Revision as of 10:12, 27 March 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


Std ViewTrimetric

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

Description

The Std ViewTrimetric command changes the view direction of the active 3D view to obtain a trimetric view. But the view will only be trimetric if it is in orthographic 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 the active view to trimetric 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()