Std DrawStyle/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 2: | Line 2: | ||
{{GuiCommand |
{{GuiCommand |
||
|Name=Std DrawStyle |
|Name=Std DrawStyle |
||
|MenuLocation=[[Std View Menu|View]] → Draw style |
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Draw style |
||
|Workbenches=All |
|Workbenches=All |
||
|SeeAlso=[[Std_SelBoundingBox|SelBoundingBox]] |
|SeeAlso=[[Std_SelBoundingBox|SelBoundingBox]] |
||
Line 16: | Line 16: | ||
==Usage== |
==Usage== |
||
* Go to the menu {{MenuCommand|View → Draw styles}}, and select an option. |
* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Draw styles}}, and select an option. |
||
** [[File:DrawStyleAsIs.svg|24px]] As is |
** [[File:DrawStyleAsIs.svg|24px]] As is |
||
** [[File:DrawStyleFlatLines.svg|24px]] Flat lines |
** [[File:DrawStyleFlatLines.svg|24px]] Flat lines |
||
Line 61: | Line 61: | ||
}} |
}} |
||
{{Std Base |
{{Std Base{{#translation:}}}} |
||
{{Userdocnavi}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
{{clear}} |
Revision as of 20:58, 13 March 2020
Std DrawStyle |
Menu location |
---|
View → Draw style |
Workbenches |
All |
Default shortcut |
None |
Introduced in version |
- |
See also |
SelBoundingBox |
Description
All objects of the 3D view are shown in different drawing styles, including solid lines, wireframe, and as points.
Different drawing styles: (0) as is, (1) flat lines, (2) shaded, (3) wireframe, (4) points, (5) hidden line, (6) no shading.
Usage
- Go to the menu View → Draw styles, and select an option.
- Or press the corresponding button in the view toolbar.
Notes
- The "Flat lines" style gives a solid color to the edges, and the faces are differently illuminated depending on the orientation of the view.
- The "Shaded" style removes the color of the edges. This style is better when displaying objects that have many different faces with normals that are in different directions, particularly directions distinct to the X, Y, and Z axes.
- The "Wireframe" style removes the color of the faces, leaving only the edges and vertices. This results in a see-through mode, so it is possible to see objects that are completely or partially hidden by other objects.
- The "Points" style only shows the vertices where two edges connect. For solids that are made of relatively simple shapes, only a few vertices will be seen. This style is better when displaying meshes, as in this case typically there will be a lot of vertices. To improve visibility, with this style it could be helpful to increase the value of ViewPoint Size.
- The "Hidden line" style shows the triangular faces and their edges as if the objects were converted to triangular meshes.
- The "No shading" style gives a solid color to the edges, and all faces are equally illuminated regardless of the orientation of the view.
Scripting
The draw style can be set from the Python console.
The argument to the "Std_DrawStyle"
command determines the style.
0
, As is1
, Flat lines2
, Shaded3
, Wireframe4
, Points5
, Hidden line6
, No shading
import FreeCADGui as Gui
Gui.runCommand('Std_DrawStyle', 0)
Gui.runCommand('Std_DrawStyle', 1)
Gui.runCommand('Std_DrawStyle', 2)
Gui.runCommand('Std_DrawStyle', 3)
Gui.runCommand('Std_DrawStyle', 4)
Gui.runCommand('Std_DrawStyle', 5)
Gui.runCommand('Std_DrawStyle', 6)
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub