editor.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. Geometry Editor
  2. ===============
  3. Introduction
  4. ------------
  5. The Geometry Editor is a drawing CAD that allows you to edit
  6. FlatCAM Geometry Objects or create new ones from scratch. This
  7. provides the ultimate flexibility by letting you specify precisely
  8. and arbitrarily what you want your CNC router to do.
  9. Creating New Geometry Objects
  10. -----------------------------
  11. To create a blank Geometry Object, simply click on the menu item
  12. **Edit→New Geometry Object** or click the **New Blank Geometry** button on
  13. the toolbar. A Geometry object with the name "New Geometry" will
  14. be added to your project list.
  15. .. image:: editor1.png
  16. :align: center
  17. .. seealso::
  18. FlatCAM Shell command :ref:`new_geometry`
  19. Editing Existing Geometry Objects
  20. ---------------------------------
  21. To edit a Geometry Object, select it from the project list and
  22. click on the menu item **Edit→Edit Geometry** or on the **Edit Geometry**
  23. toolbar button.
  24. This will make a copy of the selected object in the editor and
  25. the editor toolbar buttons will become active.
  26. Changes made to the geometry in the editor will not affect the
  27. Geometry Object until the **Edit->Update Geometry** button or
  28. **Update Geometry** toolbar button is clicked.
  29. This replaces the geometry in the currently selected Geometry
  30. Object (which can be different from which the editor copied its
  31. contents originally) with the geometry in the editor.
  32. Selecting Shapes
  33. ~~~~~~~~~~~~~~~~
  34. When the **Selection Tool** is active in the toolbar (Hit ``Esc``), clicking on the
  35. plot will select the nearest shape. If one shape is inside the other,
  36. you might need to move the outer one to get to the inner one. This
  37. behavior might be improved in the future.
  38. Holding the ``Control`` key while clicking will add the nearest shape
  39. to the set of selected objects.
  40. Creating Shapes
  41. ~~~~~~~~~~~~~~~
  42. The shape creation tools in the editor are:
  43. * Circle
  44. * Arc
  45. * Rectangle
  46. * Polygon
  47. * Path
  48. .. image:: editor2.png
  49. :align: center
  50. After clicking on the respective toolbar button, follow the instructions
  51. on the status bar.
  52. Shapes that do not require a fixed number of clicks to complete, like
  53. polygons and paths, are complete by hitting the ``Space`` key.
  54. Certain shape tools can have different options or modes. By hitting
  55. `o` and/or `p` the tool will cycle through its options and/or modes.
  56. .. seealso::
  57. The FlatCAM Shell commands :ref:`add_circle`, :ref:`add_poly` and :ref:`add_rect`,
  58. create shapes directly on a given Geometry Object.
  59. Union
  60. ~~~~~
  61. Clicking on the **Union** tool after selecting two or more shapes
  62. will create a union. For closed shapes, their union is a polygon covering
  63. the area that all the selected shapes encompassed. Unions of disjoint shapes
  64. can still be created and is equivalent to grouping shapes.
  65. .. image:: editor_union.png
  66. :align: center
  67. .. seealso::
  68. The FlatCAM Shell command :ref:`geo_union` executes a union of
  69. all geometry in a Geometry object.
  70. Moving and Copying
  71. ~~~~~~~~~~~~~~~~~~
  72. The **Move** and **Copy** tools work on selected objects. As soon as the tool
  73. is selected (On the toolbar or the ``m`` and ``c`` keys) the reference point
  74. is set at the mouse pointer location. Clicking on the plot sets the target
  75. location and finalizes the operation. An outline of the shapes is shown
  76. while moving the mouse.
  77. .. seealso::
  78. The FlatCAM Shell command :ref:`offset` will move (offset) all
  79. the geometry in a Geometry Object. This can also be done in
  80. the **Selected** panel for selected FlatCAM object.
  81. Cancelling an operation
  82. ~~~~~~~~~~~~~~~~~~~~~~~
  83. Hitting the ``Esc`` key cancels whatever tool/operation is active and
  84. selects the **Selection Tool**.
  85. Deleting selected shapes
  86. ~~~~~~~~~~~~~~~~~~~~~~~~
  87. Selections are deleted by hitting the ``-`` sign key.
  88. Other
  89. ~~~~~
  90. .. seealso::
  91. The FlatCAM Shell command :ref:`scale` changes the size of the
  92. geometry in a Geometry Object.