Angle Bisecter

Flesh out your ideas for new or improved Inkscape features before submitting a request.
nyuo7
Posts: 4
Joined: Mon Jul 02, 2012 7:59 am

Angle Bisecter

Postby nyuo7 » Mon Jul 02, 2012 8:04 am

Like making 22.5 or dividing to angles

Thanks

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Angle Bisecter

Postby brynn » Mon Jul 02, 2012 12:31 pm

Welcome to the forum :D

Yes, I can see how that could be very useful. I'm not sure if a CAD or autoCAD might be a more suitable type of program for this kind of feature. And I know that developers sometimes seem reluctant to move Inkscape more towards technical applications. But speaking from more of an artist's perspective, I would actually find such a feature very helpful!

On the other hand, there may already be a way to do this with Inkscape, using the Ellipse shape tool and/or Transform dialog. In Segment or Arc mode of Ellipse shape tool, you can set the degree of angles on the control bar. I realize it's not quite what you're asking for. But just a way to set the angle, for now.

Another way would be to move the rotation center of a path to the angle vertex (the 2 straight paths comprising the angle would have to be separate) then use Object menu > Transform > Rotate, to rotate one path by degrees.

And finally, this Ideas subforum is mainly for discussion of potential new features. Here's info on how make a formal request that will actually reach the developers (most of whom rarely visit this forum): viewtopic.php?f=28&t=286 There may actually already be another request for this, so be sure to search before starting a new request :D

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Angle Bisecter

Postby druban » Mon Jul 02, 2012 6:00 pm

The traditional method:
1. Draw a circle centered on the vertex of the angle, any size. You can do this by snapping the ellipse tool to the cusp node and then holding down ctrl and shift.
2. Where this circle crosses one of the arms of the angle, draw another circle, the same way this time snapping to the intersection of paths. This circle has to be bigger than half the angle but not an exact size.
3. Duplicate the second circle and drag it to the other arm of the angle until the center snaps to the intersection of the very first circle and the line.
4. The vertex of the angle and the points where the second and third circles intersect each other all lie on the bisector of the angle. You can use :tool_pen: to snap to the vertex and then snap to and doubleclick either of these points to draw the bisector.
image3174.png
image3174.png (38.52 KiB) Viewed 9982 times
The easiest thing to do would be to use an unstable build of Inkscape and use the stable path effect 'Angle Bisector' which constructs a bisecting segment between the angle formed by the first 3 nodes of a path, it removes the original.
rect4327.png
rect4327.png (17.29 KiB) Viewed 10128 times
Trisecting an angle: much more of a challenge ;) .
Last edited by druban on Thu Jul 05, 2012 11:20 am, edited 4 times in total.
Your mind is what you think it is.

nyuo7
Posts: 4
Joined: Mon Jul 02, 2012 7:59 am

Re: Angle Bisecter

Postby nyuo7 » Tue Jul 03, 2012 7:17 am

Thanks I submitted the request, will try the other ideas too.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Angle Bisecter

Postby druban » Tue Jul 03, 2012 11:36 am

Of course you shoud submit a request and see what the response is, but as I pointed out in my previous post the feature has already been added and apparently finished, it's just not in the current release. It should be in the next one...
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Angle Bisecter

Postby brynn » Tue Jul 03, 2012 11:48 am

druban wrote: It should be in the next one...

Oh, that's awesome!

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Angle Bisecter

Postby ~suv » Tue Jul 03, 2012 6:33 pm

Couple of notes:
druban wrote:The easiest thing to do would be to use an unstable build of Inkscape and use the stable path effect 'Angle Bisector' which constructs a bisecting segment between the angle formed by the first 3 nodes of a path, it removes the original. (…)

  • the experimental LPEs are not enabled by default with current unstable builds of Inkscape trunk (you have to change some lines in the source files, and compile it yourself - unless the person providing pre-compiled development snapshot packages for your platform did that already).
  • "(…), it removes the original" is not really (at least technically) true: like with every path effect, the original path is still known (toggle the path effect on/off in the Path effects editor to see it).
druban wrote:(…) as I pointed out in my previous post the feature has already been added and apparently finished, it's just not in the current release. It should be in the next one...

  • It is unlikely IMHO that the Geom Tool will be available in the next major release (0.49) as things currently stand: the required path effects and the geom tool itself had been disabled on request of the author because the interface isn't finished. No one has been working on those LPEs nor on the tool since that (some LPEs are partially broken, at least last time I tested, due to the many changes and refactoring happening elsewhere in the code base).
  • prokoudine did a nice teaser for the Geometric Tool (see earlier topic Geometry Constructions), but unfortunately that didn't help to spark any developer's interest to revive and finish the tool.

nyuo7
Posts: 4
Joined: Mon Jul 02, 2012 7:59 am

Re: Angle Bisecter

Postby nyuo7 » Wed Jul 04, 2012 2:37 am

Alright, guess ill those methods..
Edit: Still a little confused about how to bisect (2) existing angles. The path effect method sounds cool if can be implemented somehow, which I was thinking originally.

The Geom tool sounded interesting too.

Discussed (and implemented, currently disabled) as live path effect for the Geom Tool:<http://wiki.inkscape.org/wiki/index.php/BlueprintGeometricAndTechDrawing#Basic>

Note: the feature to constrain rotating to preset angles already exists in current stable Inkscape:<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Transforms.html#Transforms-Mouse-SRS-RotatingSkewing>

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Angle Bisecter

Postby brynn » Wed Jul 04, 2012 12:08 pm

Edit: Still a little confused about how to bisect (2) existing angles.

You want to bisect 2 angles? Or bisect one, which creates 2 angles? I can write step by step instructions, if you like, once I know exactly what you want to do.

nyuo7
Posts: 4
Joined: Mon Jul 02, 2012 7:59 am

Re: Angle Bisecter

Postby nyuo7 » Thu Jul 05, 2012 3:04 am

Yes whats best way can bisect an angle, thanks.

brynn wrote:
Edit: Still a little confused about how to bisect (2) existing angles.

You want to bisect 2 angles? Or bisect one, which creates 2 angles? I can write step by step instructions, if you like, once I know exactly what you want to do.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Angle Bisecter

Postby druban » Thu Jul 05, 2012 10:51 am

nyuo7 wrote:Yes whats best way can bisect an angle, thanks.

I'm sure Brynn will have a far more elegant solution ... but I went up to my previous post and added details of the bisection (or I will in a second :D )
~suv wrote:"(…), it removes the original" is not really (at least technically) true: like with every path effect, the original path is still known (toggle the path effect on/off in the Path effects editor to see it).

absolutely, and I would like to point out that saying that it deletes it is totally unfair to the clever people who designed the path effects because the original path is retained for editing (with the nodetool) or restoring unlike all the other extension based modifications, thereby adding greatly to the functionality of Inkscape.
~suv wrote:"(… unless the person providing pre-compiled development snapshot packages for your platform did that already)

They did, whoever they are! Big thanks to the anonymous? Windows compiler who uploads to this location:https://skydrive.live.com/?cid=09706D11303FA52A&id=9706D11303FA52A%21128# Take a bow, whoever you are!
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Angle Bisecter

Postby brynn » Sat Jul 07, 2012 6:22 pm

Aahh, I appreciate your confidence druban, but what I thought could be done, can't.

In the Transform dialog, Move, Scale and Skew tabs all have many different unit options, including percent. So I was assuming that Rotate would also offer at least percent. But it only has degrees and radians. That means that you would have to know the original angle before you can bisect it precisely. If you do happen to know the original angle, then here's what to do

-- Duplicate the angle and delete one node (leaving a straight, 2-node path which lies directly on top of one side of the original angle).
-- Switch to Selection tool, then click on the line again to display rotation center and handles.
-- Enable snapping with the proper settings to allow snapping of the rotation center to the apex of the angle. Then snap it.
-- Whatever the original angle is, divide that number by 2. Enter the result in Transform dialog > Rotate tab, and set units for degrees.
-- Click Apply. If the line rotates outside the angle, then Undo. Now place a minus sign in front of the number, and click Apply again.
(There's probably a way to know which way the line needs to rotate, to determine whether to put the positive or negative value in the field, but I get really confused, and can never remember which way it goes. So I just experiment -- it's only either positive or negative, so not very much trial and error is needed :mrgreen:

If you don't know the original angle already, then I would suggest druban's technique. If you don't want to mess up your drawing with all the extra circles, you could do the circles on a different layer, and either hide or delete it later :D

If for some reason you can't do that, I can think of an even more involved procedure. You'd have to use the Ellipse tool to draw the original angle. On the Ellipse tool control bar are 2 settings called Start and End. By looking at those values (which are in degrees) and doing a little simple math, you can determine what the original angle is. And then you could proceed with my first instructions.

If you can't go back and re-draw the original angle, you could use the Ellipse tool to learn the original angle. By holding the Shift key, the ellipse will be drawn from the center. If you set up snapping properly, you can have the ellipse drawn from the apex of the original angle. Ooohhh.....well, this plan lacks one tiny feature from being able to work. I thought by rotating that ellipse by hand, its handles would snap to the path forming the original angle. If the handles of the ellipse would snap to paths (and I don't know why they don't - I've tried a lot of different snap set-ups) then by snapping one handle to one side of path, you could snap the other handle to the other side, then check the control bar for the degrees, do a little math, and know the angle.

Maybe someone else could come up with the right snap scenario to make this work? I don't know what else to try. But again, it seems like it should work :D

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Angle Bisecter

Postby druban » Wed Jul 25, 2012 7:35 pm

Well, having thought about it a bit more I think that I can offer a simpler method of bisection, if anyone is still interested. It needs no LPEs or development build features and only a little snapping...I hope it turns out to be useful.
Attachments
Bisector.png
Bisector.png (108.23 KiB) Viewed 9818 times
Your mind is what you think it is.


Return to “Inkscape Ideas”