Mouse navigation: Difference between revisions

From FreeCAD Documentation
(NavigationCAD_dark.svg)
(23 intermediate revisions by the same user not shown)
Line 15: Line 15:


<!--T:1-->
<!--T:1-->
The FreeCAD '''mouse navigation''' consists of the commands used to visually navigate the 3D space and interact with the objects displayed. FreeCAD supports multiple mouse navigation styles. The default navigation style is referred to as "CAD Navigation," and is very simple and practical, but FreeCAD also provides alternative navigation styles which you can choose according to your preferences.
The FreeCAD '''mouse navigation''' consists of the commands used to visually navigate 3D space and interact with the displayed objects. FreeCAD supports multiple mouse navigation styles. The default navigation style is referred to as [[#CAD_navigation|CAD Navigation]], and is very simple and practical, but FreeCAD also provides several alternative navigation styles to choose from. The selected style is used for all workbenches.


== Navigation == <!--T:61-->
<!--T:79-->
For more information about selecting objects see [[Selection_methods|Selection methods]].


<!--T:2-->
<!--T:80-->
For more information about manipulating objects see [[Std_TransformManip|Std TransformManip]].
The mouse gestures used for object manipulation vary depending on the Navigation style selected; the currently selected style is used for all workbenches.


== Selecting a navigation style == <!--T:61-->
<!--T:3-->
There are several ways to change the navigation style:


<!--T:4-->
<!--T:4-->
# Do one of the following:
* Using the [[Preferences_Editor#Navigation|Preferences Editor]]; menu {{MenuCommand|Edit → Preferences Display → Navigation → 3D Navigation}}.
#* Press the {{Button|[[File:NavigationCAD_dark.svg|16px]]}} button in the [[Status_bar|Status bar]].
* Right-clicking in empty space in the 3D view, then selecting {{MenuCommand|Navigation styles}} in the context menu.
#* Right-click an empty area in the [[3D_view|3D view]], and select {{MenuCommand|Navigation styles}} from the context menu.
* Changing it in the bottom status bar of FreeCAD's main window.
#* Use the [[Preferences_Editor#Navigation|Preferences Editor]]. In the menu select {{MenuCommand|Edit → Preferences}} and then {{MenuCommand|Display → Navigation → 3D Navigation}}.
# Select a style from the list.
# Optionally change the {{MenuCommand|Orbit style}}: press the {{Button|[[File:NavigationCAD_dark.svg|16px]]}} button in the [[Status_bar|Status bar]] and then choose {{MenuCommand|Settings → Orbit style}}. See [[Preferences_Editor#Navigation|Preferences Editor]].
# Optionally change the {{MenuCommand|Rotation mode}}. See [[Preferences_Editor#Navigation|Preferences Editor]].
# If the {{MenuCommand|CAD}} navigation style is selected: optionally change the {{MenuCommand|Enable animation}} setting. See [[Preferences_Editor#Navigation|Preferences Editor]].


FreeCAD offers several navigation styles:
== Available navigation styles == <!--T:81-->


=== Blender navigation === <!--T:7-->
=== Blender navigation === <!--T:7-->
Line 70: Line 75:


<!--T:33-->
<!--T:33-->
Holding down {{KEY|Ctrl}} allows the selection of multiple objects.
Hold down {{KEY|Ctrl}} to select multiple objects.
|Pan_text=Hold the middle mouse button, then move the pointer.
|Pan_text=Hold the middle mouse button, then move the pointer.
|Pan_mode_text=Pan mode: hold the {{KEY|Ctrl}} key, press the right mouse button once, then move the pointer.
|Pan_mode_text=Pan mode: hold the {{KEY|Ctrl}} key, press the right mouse button once, then move the pointer.
Line 81: Line 86:


<!--T:35-->
<!--T:35-->
The cursor location when the middle mouse button is pressed determines the center of rotation. Rotation works like spinning a ball which rotates around its center. If the buttons are released before you stop the mouse motion, the view continues spinning, if this is enabled.
If the buttons are released before you stop the mouse motion, the view continues spinning, if this is enabled.


<!--T:36-->
<!--T:36-->
Line 135: Line 140:


<!--T:71-->
<!--T:71-->
In Maya-Gesture Navigation, panning, zooming, and rotating the view require the {{KEY|Alt}} key together with a mouse button; therefore, a three-button mouse is required. It's also possible to use gestures as this mode was developed over the [[#Gesture_navigation|Gesture navigation]] mode.
In Maya-Gesture Navigation, panning, zooming, and rotating the view require the {{KEY|Alt}} key together with a mouse button; therefore, a three-button mouse is required. It's also possible to use gestures as this style was developed over the [[#Gesture_navigation|Gesture navigation]] style.


<!--T:31-->
<!--T:31-->
Line 177: Line 182:


<!--T:6-->
<!--T:6-->
OpenInventor navigation (formerly Inventor) was modeled after [http://en.wikipedia.org/wiki/Open_Inventor Open Inventor]. In order to select objects, you must hold down the {{KEY|Ctrl}} key.
OpenInventor navigation (formerly Inventor) was modeled after [http://en.wikipedia.org/wiki/Open_Inventor Open Inventor]. In order to select objects, you must hold down the {{KEY|Shift}} or {{KEY|Ctrl}} key.


<!--T:39-->
<!--T:39-->
This mode is not based on Autodesk Inventor.
This style is not based on Autodesk Inventor.


<!--T:40-->
<!--T:40-->
Line 188: Line 193:
|Zoom_name=Zoom
|Zoom_name=Zoom
|Rotate_view_name=Rotate view
|Rotate_view_name=Rotate view
|Ctrl={{KEY|Ctrl}}
|Shift={{KEY|Shift}}
|Select_text=Hold {{KEY|Ctrl}}, then press the left mouse button over an object you want to select.
|Select_text=Hold {{KEY|Shift}}, then press the left mouse button over an object you want to select.

<!--T:86-->
Hold down {{KEY|Ctrl}} instead to select multiple objects.
|Pan_text=Hold the middle mouse button, then move the pointer.
|Pan_text=Hold the middle mouse button, then move the pointer.
|Zoom_text=Use the mouse wheel to zoom in and out.
|Zoom_text=Use the mouse wheel to zoom in and out.
Line 246: Line 254:
}}
}}


=== TinkerCAD navigation ===
=== TinkerCAD navigation === <!--T:82-->
{{Version|0.20}}
The TinkerCAD navigation style was modeled after [https://en.wikipedia.org/wiki/Tinkercad TinkerCAD ].


<!--T:83-->
The TinkerCAD navigation style was modeled after [https://en.wikipedia.org/wiki/Tinkercad TinkerCAD].

<!--T:84-->
{{Version|0.20}}

<!--T:85-->
{{TinkerCAD Navigation
{{TinkerCAD Navigation
|Select_name=Select
|Select_name=Select
Line 255: Line 268:
|Zoom_name=Zoom
|Zoom_name=Zoom
|Rotate_view_name=Rotate view
|Rotate_view_name=Rotate view
|Shift={{KEY|Shift}}
|Select_text=Press the left mouse button over an object you want to select.
|Select_text=Press the left mouse button over an object you want to select.
|Pan_text=Hold the middle mouse button, then move the pointer.
|Pan_text=Hold the middle mouse button, then move the pointer.
Line 273: Line 285:
|Zoom_name=Zoom
|Zoom_name=Zoom
|Rotate_view_name=Rotate view
|Rotate_view_name=Rotate view
|Ctrl={{KEY|Ctrl}}
|Shift={{KEY|Shift}}
|Shift={{KEY|Shift}}
|Ctrl={{KEY|Ctrl}}
|Alt={{KEY|Alt}}
|Alt={{KEY|Alt}}
|PageUp={{KEY|PageUp}}
|PageUp={{KEY|PageUp}}
Line 281: Line 293:
|Pan_text=Hold {{KEY|Shift}}, then move the pointer.
|Pan_text=Hold {{KEY|Shift}}, then move the pointer.
|Zoom_text=Use {{KEY|PageUp}} and {{KEY|PageDown}} to zoom in and out.
|Zoom_text=Use {{KEY|PageUp}} and {{KEY|PageDown}} to zoom in and out.
|Zoom_alt_text=Alternatively, hold {{KEY|Shift}} and {{KEY|Ctrl}}, then move the pointer.
|Zoom_alt_text=Alternatively, hold {{KEY|Ctrl}} and {{KEY|Shift}}, then move the pointer.
|Rotate_view_text=Hold {{KEY|Alt}}, then move the pointer.
|Rotate_view_text=Hold {{KEY|Alt}}, then move the pointer.
|Rotate_view_alt_text=Alternatively, hold {{KEY|Shift}} and the left button, then move the pointer.
|Rotate_view_alt_text=Alternatively, hold {{KEY|Shift}} and the left button, then move the pointer.
}}
}}

== Selecting objects == <!--T:11-->

=== Simple selection === <!--T:64-->

<!--T:12-->
Objects can be selected by a click with the left mouse button either by clicking on the object in the [[3D_view|3D view]] or by selecting it in the [[Tree_view|tree view]].

=== Preselection === <!--T:65-->

<!--T:13-->
There is also a ''Preselection'' mechanism that highlights objects and displays information before selection by just hovering the mouse over the objects. If you don't like this behaviour or you have a slow machine, you can switch preselection off in the preferences.

== Manipulating objects == <!--T:66-->

<!--T:14-->
FreeCAD offers [[Manipulator|''manipulators'']] that are handles that can be used to modify an object's appearance, shape, or other parameters.


== Hardware support == <!--T:17-->
== Hardware support == <!--T:17-->

Revision as of 19:52, 6 March 2022

Overview

The FreeCAD mouse navigation consists of the commands used to visually navigate 3D space and interact with the displayed objects. FreeCAD supports multiple mouse navigation styles. The default navigation style is referred to as CAD Navigation, and is very simple and practical, but FreeCAD also provides several alternative navigation styles to choose from. The selected style is used for all workbenches.

For more information about selecting objects see Selection methods.

For more information about manipulating objects see Std TransformManip.

Selecting a navigation style

  1. Do one of the following:
    • Press the button in the Status bar.
    • Right-click an empty area in the 3D view, and select Navigation styles from the context menu.
    • Use the Preferences Editor. In the menu select Edit → Preferences and then Display → Navigation → 3D Navigation.
  2. Select a style from the list.
  3. Optionally change the Orbit style: press the button in the Status bar and then choose Settings → Orbit style. See Preferences Editor.
  4. Optionally change the Rotation mode. See Preferences Editor.
  5. If the CAD navigation style is selected: optionally change the Enable animation setting. See Preferences Editor.

Available navigation styles

Blender navigation

The Blender navigation style was modeled after Blender.

Select Pan Zoom Rotate view
Shift+
Press the left mouse button over an object you want to select. Hold Shift and the middle mouse button, then move the pointer.

Alternatively, hold both left and right mouse buttons, and then move the pointer.

Use the mouse wheel to zoom in and out. Hold the middle mouse button, then move the pointer.

CAD navigation

This is the default navigation style. It allows the user a simple control of the view, and does not require the use of keyboard keys except to make multi-selections.

Select Pan Zoom Rotate view
First method
Rotate view
Alternate method
Press the left mouse button over an object you want to select.

Hold down Ctrl to select multiple objects.

Hold the middle mouse button, then move the pointer. Use the mouse wheel to zoom in and out.

Clicking the middle mouse button re-centers the view on the location of the cursor.

Hold the middle mouse button, then press and hold the left mouse button, then move the pointer.

If the buttons are released before you stop the mouse motion, the view continues spinning, if this is enabled.

A double click with the middle mouse button sets a new center of rotation.

Hold the middle mouse button, then press and hold the right mouse button, then move the pointer.

With this method the middle mouse button may be released after the right mouse button is held pressed.

Users who use the mouse with their right hand may find this method easier than the first method.

Ctrl+ Ctrl+Shift+ Shift+
Pan mode: hold the Ctrl key, press the right mouse button once, then move the pointer. Zoom mode: hold the Ctrl and Shift keys, press the right mouse button once, then move the pointer. Rotate mode: hold the Shift key, press the right mouse button once, then move the pointer.

Gesture navigation

This style was tailored for use with a touchscreen and pen. Nevertheless, it can also be used with a mouse, and is recommended for use when using a Mac with a trackpad.

Select Pan Zoom Rotate view Tilt view
Press the left mouse button over an object you want to select. Hold the right mouse button, then move the pointer. Use the mouse wheel to zoom in and out. Hold the left mouse button, then move the pointer.

In Sketcher and other edit modes, this behavior is disabled. Hold Alt when pressing the mouse button to enter rotation mode.

To set the camera's focus point for rotation, click a point with the middle mouse button. Alternatively, aim the cursor at a point and press H on the keyboard.

Hold both left and right mouse buttons, then move the pointer sideways.
Tap to select. Drag with two fingers.

Alternatively, tap and hold, then drag. This simulates the pan with the right mouse button.

Drag two fingers (pinch) closer or farther apart. Drag with one finger to rotate.

Hold Alt when in the Sketcher.

Rotate the imaginary line formed by two touch points.

On v0.18 this method is disabled by default. To enable, go to Edit → Preferences → Display, and untick "Disable touchscreen tilt gesture" checkbox.

Maya-Gesture navigation

In Maya-Gesture Navigation, panning, zooming, and rotating the view require the Alt key together with a mouse button; therefore, a three-button mouse is required. It's also possible to use gestures as this style was developed over the Gesture navigation style.

Select Pan Zoom Rotate view
Alt+ Alt+ Alt+
Press the left mouse button over an object you want to select. Hold Alt and the middle mouse button, then move the pointer. Hold Alt and the right mouse button, then move the pointer.

Alternatively, use the mouse wheel to zoom in and out.

Hold Alt and the left mouse button, then move the pointer.

OpenCascade navigation

The OpenCascade navigation style was modeled after OpenCascade.

Select Pan Zoom Rotate view
Ctrl+ Ctrl+ Ctrl+


Press the left mouse button over an object you want to select. Hold the middle mouse button, then move the pointer. Use the mouse wheel to zoom in and out.

Alternatively, hold Ctrl and the left mouse button, then move the pointer.

Hold Ctrl and the right mouse button, then move the pointer.

OpenInventor navigation

OpenInventor navigation (formerly Inventor) was modeled after Open Inventor. In order to select objects, you must hold down the Shift or Ctrl key.

This style is not based on Autodesk Inventor.

Select Pan Zoom Rotate view
Shift+
Hold Shift, then press the left mouse button over an object you want to select.

Hold down Ctrl instead to select multiple objects.

Hold the middle mouse button, then move the pointer. Use the mouse wheel to zoom in and out.

Alternatively, hold the middle mouse button, then press and hold the left mouse button, then move the pointer.

Hold the left mouse button, then move the pointer.

OpenSCAD navigation

The OpenSCAD navigation style was modeled after OpenSCAD.

introduced in version 0.20

Select Pan Zoom Rotate view
Shift+
Press the left mouse button over an object you want to select. Hold the right mouse button, then move the pointer. Hold the middle mouse button, then move the pointer.

Alternatively, hold Shift and the right mouse button, then move the pointer.

Hold the left mouse button, then move the pointer.

Revit navigation

The Revit navigation style was modeled after Revit.

Select Pan Zoom Rotate view
Shift+


Press the left mouse button over an object you want to select. Hold the middle mouse button, then move the pointer.

Alternatively, hold both left and right mouse buttons, then move the pointer.

Use the mouse wheel to zoom in and out. Hold Shift and the middle mouse button, then move the pointer.

Alternatively, hold the middle mouse button, then press and hold the right mouse button, then move the pointer.

TinkerCAD navigation

The TinkerCAD navigation style was modeled after TinkerCAD.

introduced in version 0.20

Select Pan Zoom Rotate view
Press the left mouse button over an object you want to select. Hold the middle mouse button, then move the pointer. Use the mouse wheel to zoom in and out. Press the right mouse button, then move the pointer.

Touchpad navigation

In Touchpad Navigation, panning, zooming, and rotating the view require a modifier key together with the touchpad.

Select Pan Zoom Rotate view
Shift+ PageUp, PageDown Alt+
Press the left mouse button over an object you want to select. Hold Shift, then move the pointer. Use PageUp and PageDown to zoom in and out. Hold Alt, then move the pointer.
Ctrl+Shift+ Shift+
Alternatively, hold Ctrl and Shift, then move the pointer. Alternatively, hold Shift and the left button, then move the pointer.

Hardware support

FreeCAD also supports some 3D input devices.

Recommended navigation for macOS

On MacBooks with a trackpad the Gesture navigation works very well, but the gestures have a special meaning:

  • Zoom: drag with two fingers.
  • Rotate: drag with three fingers.
  • Pan: Ctrl + three fingers.

Developing a custom navigation

The tutorial Adding a new mouse navigation option to FreeCAD orients developers who want to develop a custom mouse navigation option. Familiarity with the C++ syntax is required.