Std DrawStyle: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>


<!--T:14-->
{{Docnav
{{Docnav
|[[Std_FreezeViews|Std FreezeViews]]
|[[Std_FreezeViews|FreezeViews]]
|[[Std_SelBoundingBox|Std SelBoundingBox]]
|[[Std_SelBoundingBox|SelBoundingBox]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=
|IconL=
Line 26: Line 24:


<!--T:3-->
<!--T:3-->
The '''Std DrawStyle''' command can be used to override the effect of the Display Mode property of objects in a 3D view.
The '''Std DrawStyle''' command can override the effect of the {{PropertyView|Display Mode}} [[Property_editor|property]] of objects in a [[3D_view|3D view]].


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


<!--T:6-->
<!--T:6-->
# There are several ways to change the draw style:
# There are several ways to invoke the command:
#* Click on the black down arrow to the right of the {{Button|[[Image:DrawStyleAsIs.svg|16px]] [[Std_DrawStyle|Std DrawStyle]]}} button and select a style from the flyout. The button image will change to reflect the active document’s draw style.
#* Click on the black down arrow to the right of the {{Button|[[Image:Std_DrawStyleAsIs.svg|16px]] [[Std_DrawStyle|Std DrawStyle]]}} button and select a style from the flyout.
#* In the menu go to {{MenuCommand|View → Draw style}} and select a style.
#* In the menu go to {{MenuCommand|View → Draw style}} and select a style.
#* In the [[3D_view|3D view]] context menu go to {{MenuCommand|Draw style}} and select a style.
#* In the [[3D_view|3D view]] context menu go to {{MenuCommand|Draw style}} and select a style.
#* Use one of the keyboard shortcut: {{KEY|V}} then {{KEY|1}}, {{KEY|2}}, {{KEY|3}}, {{KEY|4}}, {{KEY|5}}, {{KEY|6}} or {{KEY|7}}.
#* Use one of the keyboard shortcut: {{KEY|V}} then {{KEY|1}}, {{KEY|2}}, {{KEY|3}}, {{KEY|4}}, {{KEY|5}}, {{KEY|6}} or {{KEY|7}}.


==Available styles==
==Available draw styles== <!--T:15-->


===[[Image:DrawStyleAsIs.svg|16px]] As is===
===[[Image:Std_DrawStyleAsIs.svg|24px]] As is=== <!--T:16-->


<!--T:17-->
The "As is" style does not override the Display Mode of objects.
The '''As is''' style does not override the {{PropertyView|Display Mode}} of objects.


</translate>
===[[Image:DrawStylePoints.svg|16px]] Points===
[[Image:Std_DrawStyleAsIs_example.png]]
<translate>
<!--T:18-->
{{Caption|4 identical objects each with a different Display Mode (from left to right: 'Points', 'Wireframe', 'Shaded' and 'Flat lines') with the 'As is' draw style applied}}


===[[Image:Std_DrawStylePoints.svg|24px]] Points=== <!--T:19-->
The "Points" style overrides the Display Mode of objects. This style matches the Points Display Mode. Vertices are displayed in solid colors. Edges and faces are not displayed.


<!--T:20-->
===[[Image:DrawStyleWireFrame.svg|16px]] Wireframe===
The '''Points''' style overrides the {{PropertyView|Display Mode}} of objects. This style matches the 'Points' Display Mode. Vertices are displayed in solid colors. Edges and faces are not displayed.


</translate>
The "Wireframe" style overrides the Display Mode of objects. This style matches the Wireframe Display Mode. Vertices and edges are displayed in solid colors. Faces are not displayed.
[[Image:Std_DrawStylePoints_example.png]]
<translate>
<!--T:21-->
{{Caption|The same objects with the 'Points' draw style applied}}


===[[Image:DrawStyleHiddenLine.svg|16px]] Hidden line===
===[[Image:Std_DrawStyleWireFrame.svg|24px]] Wireframe=== <!--T:22-->


<!--T:23-->
The "Hidden line" style overrides the Display Mode of objects. Objects are displayed as if converted to triangular meshes.
The '''Wireframe''' style overrides the {{PropertyView|Display Mode}} of objects. This style matches the 'Wireframe' Display Mode. Vertices and edges are displayed in solid colors. Faces are not displayed.


</translate>
===[[Image:DrawStyleNoShading.svg|16px]] No shading===
[[Image:Std_DrawStyleWireframe_example.png]]
<translate>
<!--T:24-->
{{Caption|The same objects with the 'Wireframe' draw style applied}}


===[[Image:Std_DrawStyleHiddenLine.svg|24px]] Hidden line=== <!--T:25-->
The "No shading" style overrides the Display Mode of objects. Vertices, edges and faces are displayed in solid colors.


<!--T:26-->
===[[Image:DrawStyleShaded.svg|16px]] Shaded===
The '''Hidden line''' style overrides the {{PropertyView|Display Mode}} of objects. Objects are displayed as if converted to triangular meshes.


</translate>
The "Shaded” style overrides the Display Mode of objects. This style matches the Shaded Display Mode. Vertices and edges are not displayed. Faces are illuminated depending on their orientation.
[[Image:Std_DrawStyleHiddenLine_example.png]]
<translate>
<!--T:27-->
{{Caption|The same objects with the 'Hidden line' draw style applied}}


===[[Image:DrawStyleFlatLines.svg|16px]] Flat lines===
===[[Image:Std_DrawStyleNoShading.svg|24px]] No shading=== <!--T:28-->


<!--T:29-->
The "Flat lines” style overrides the Display Mode of objects. This style matches the Flat lines Display Mode. Vertices and edges are displayed in solid colors. Faces are illuminated depending on their orientation.
The '''No shading''' style overrides the {{PropertyView|Display Mode}} of objects. Vertices, edges and faces are displayed in solid colors.


</translate>
==Notes== <!--T:8-->
[[Image:Std_DrawStyleNoShading_example.png]]
<translate>
<!--T:30-->
{{Caption|The same objects with the 'No shading' draw style applied}}


===[[Image:Std_DrawStyleShaded.svg|24px]] Shaded=== <!--T:31-->
<!--T:9-->
* Todo.


<!--T:32-->
==Preferences==
The '''Shaded''' style overrides the {{PropertyView|Display Mode}} of objects. This style matches the 'Shaded' Display Mode. Vertices and edges are not displayed. Faces are illuminated depending on their orientation.


</translate>
* Todo.
[[Image:Std_DrawStyleShaded_example.png]]
<translate>
<!--T:33-->
{{Caption|The same objects with the 'Shaded' draw style applied}}


===[[Image:Std_DrawStyleFlatLines.svg|24px]] Flat lines=== <!--T:34-->
==Properties==


<!--T:35-->
* Todo.
The '''Flat lines''' style overrides the {{PropertyView|Display Mode}} of objects. This style matches the 'Flat lines' Display Mode. Vertices and edges are displayed in solid colors. Faces are illuminated depending on their orientation.


</translate>
==Scripting==
[[Image:Std_DrawStyleFlatLines_example.png]]
<translate>
<!--T:36-->
{{Caption|The same objects with the 'Flat lines' draw style applied}}


==Notes== <!--T:8-->
* Todo.

<!--T:9-->
* Objects in a [[3D_view|3D view]] also have a {{PropertyView|Draw Style}} property. This property controls the linetype used for the edges. The Std DrawStyle command does not override this property.
* For a macro to toggle between two draw styles see: [[Macro_Toggle_Drawstyle|Macro Toggle Drawstyle]].


<!--T:37-->
{{Docnav
{{Docnav
|[[Std_FreezeViews|Std FreezeViews]]
|[[Std_FreezeViews|FreezeViews]]
|[[Std_SelBoundingBox|Std SelBoundingBox]]
|[[Std_SelBoundingBox|SelBoundingBox]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=
|IconL=
Line 97: Line 134:
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

[[Category:Sandbox]]

Latest revision as of 20:36, 19 January 2023

Std DrawStyle

Menu location
View → Draw style → ...
Workbenches
All
Default shortcut
V 1 - V 7
Introduced in version
-
See also
Std SelBoundingBox

Description

The Std DrawStyle command can override the effect of the ViewDisplay Mode property of objects in a 3D view.

Usage

  1. There are several ways to invoke the command:
    • Click on the black down arrow to the right of the Std DrawStyle button and select a style from the flyout.
    • In the menu go to View → Draw style and select a style.
    • In the 3D view context menu go to Draw style and select a style.
    • Use one of the keyboard shortcut: V then 1, 2, 3, 4, 5, 6 or 7.

Available draw styles

As is

The As is style does not override the ViewDisplay Mode of objects.

4 identical objects each with a different Display Mode (from left to right: 'Points', 'Wireframe', 'Shaded' and 'Flat lines') with the 'As is' draw style applied

Points

The Points style overrides the ViewDisplay Mode of objects. This style matches the 'Points' Display Mode. Vertices are displayed in solid colors. Edges and faces are not displayed.

The same objects with the 'Points' draw style applied

Wireframe

The Wireframe style overrides the ViewDisplay Mode of objects. This style matches the 'Wireframe' Display Mode. Vertices and edges are displayed in solid colors. Faces are not displayed.

The same objects with the 'Wireframe' draw style applied

Hidden line

The Hidden line style overrides the ViewDisplay Mode of objects. Objects are displayed as if converted to triangular meshes.

The same objects with the 'Hidden line' draw style applied

No shading

The No shading style overrides the ViewDisplay Mode of objects. Vertices, edges and faces are displayed in solid colors.

The same objects with the 'No shading' draw style applied

Shaded

The Shaded style overrides the ViewDisplay Mode of objects. This style matches the 'Shaded' Display Mode. Vertices and edges are not displayed. Faces are illuminated depending on their orientation.

The same objects with the 'Shaded' draw style applied

Flat lines

The Flat lines style overrides the ViewDisplay Mode of objects. This style matches the 'Flat lines' Display Mode. Vertices and edges are displayed in solid colors. Faces are illuminated depending on their orientation.

The same objects with the 'Flat lines' draw style applied

Notes

  • Objects in a 3D view also have a ViewDraw Style property. This property controls the linetype used for the edges. The Std DrawStyle command does not override this property.
  • For a macro to toggle between two draw styles see: Macro Toggle Drawstyle.