gotcha

Author Topic: Deleting part of an object -alternative to eraser  (Read 3178 times)

August 04, 2017, 08:30:28 AM
Read 3178 times

jim cubie

  • Jr. Member

  • Offline
  • ***

  • 30
I am making a wall and a window. I want the window to have a curved top.  I have created the curve I want by placing an ellipse on top of the rectangular window.  How do I delete the bottom of the ellipse and the straight line that was the top of the window. In Sketchup I could click on the line and it disappears. How get rid of the unwanted lines? I have tried the eraser but it leaves a red line where it erases and is difficult to use to delete each and every portion of the line. See attachment.

August 04, 2017, 10:33:41 AM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Welcome aboard!

For that you will need to draw a path at the end -therefore converting the ellipse to path would be the first step (Ctrl+Shift+C).
(Using the eraser tool does the same, it creates a path from the ellipse.)

Then, it's using the node tool. Select the nodes between the bottom arch of the path you want to get rid of, then unconnect nodes -6th icon in toolbar.
That will lead to an elliptical arch.
Could do the same with the rectangle, however as your nodes are not aligned well -see snapping for reference-.

Instead I'd suggest using only the ellipse-arch only.

Select the two end nodes of the arch and connect them with a path segment -5th icon in the toolbar;
then, select one of the previous end nodes only, and split them to two -4th icon-,
repeat this on the other "endnode" of the arch, then click the bottom segment in between and use the arrow keys or Ctrl+mouse drag to move that segment below,
and to finish up the shape connect the unconnected nodes on each side with a new path segment.



On a side note such windows are hardly using ellipse arcs, rather baskethandle arches.

August 04, 2017, 10:52:16 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Yes, I would suggest there are better vector tools than the eraser, to remove unwanted things.  Inkscape's Eraser tool seems to have some bugs; I can't always get it to work.  However, just to mention it, the red indications which the Eraser tool makes are not permanent and are not part of the image.  They should disappear shortly after the mouse button is released. It could be a(nother) bug, if the red marks are remaining more than.....say 5 to 10 seconds after the mouse is released.

For the case you've described, where the ellipse and the rectangle should have the same width and are aligned vertically, I would use Path menu > Union.  It will make the 2 objects one, removing the inner segments, automatically.

However, your drawing shows the ellipse is slightly wider and/or misaligned.  If you were to use Union on them as is, the misaligned parts would become part of the new object, and probably that would not be acceptable.  (Try it to see what I mean ;) )  If there were some reason why you needed to join those 2 object, as they are, you would remove the unwanted segments, and then  join the new end nodes together.  Note that if they are still shapes (rectangle and ellipse) they will need to be converted to paths first, using Path menu > Object to Path.)

To remove the segments, use the Node tool  :node: .  For the rectangle, click once on the segment, to select both nodes (on either side of where you click).  Then click "Delete segment between 2 nodes" button on the Node tool control bar.  Looks like: :bbn:

You could do that on the ellipse as well, except you would still have a node leftover, which still needs to be deleted.  Click once on that node, to select it, then delete (either Delete key or Edit menu > Delete or right-click > Delete).

There is arguably a little faster way for the ellipse.  Duplicate the rectangle.  Hold Shift key while you click on the ellipse (shift allows a multiple selection).  Then  Path menu > Difference.

Whoops, I see Lazur posted while I was typing.  I'll post anyway, since mine includes some different info.  And yes, Lazur gives yet another way to "edit" the ellipse.  Using Ellipse tool, you can draw the arc originally as an arc.  http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Shapes-Arcs.html

(One of these days I'll finally make a tutorial on Node Editing..... )

Edit - forgot joining the new endnodes.  Still with the Node tool, drag a tiny selection box around the 2 nodes that you want to join (selects both easily).  The "Join selected nodes" button on the control bar.   :jsn:
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann