Gimp-Forum.net
ofn-enclosing-circle - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: ofn-enclosing-circle (/Thread-ofn-enclosing-circle)

Pages: 1 2


RE: ofn-enclosing-circle - Krikor - 01-07-2021

I think it would be necessary for a path to determine the longitudinal axis of that ellipse.
In addition to the selection, a path would be created to obtain the ellipse.

In the image below, the color strokes; yellow, green and blue represent directional paths, which would inform the axis on which the ellipse would extend.
[attachment=5446]
The question still remains as to what the radius (size / length) of the smallest axis of this ellipse.

Just rambling.


RE: ofn-enclosing-circle - denzjos - 01-07-2021

@Krikor, you have a point. If one want to use this plugin for an illustration then it look the best if the chosen object has an encircling that points to that object that is important and that the form of the ellipse follows the direction of movement(if one will suggest one in the illustration) or, if it's a person, the direction (s)he is looking at.


RE: ofn-enclosing-circle - Ofnuts - 01-12-2021

Trying on odd shapes and complicated paths

[attachment=5466]

So, the center of the British Isles is in Lauchentyre, Scotland Smile



RE: ofn-enclosing-circle - Kevin - 01-12-2021

And if you were to try it without annexing the Republic of Ireland?!


RE: ofn-enclosing-circle - Ofnuts - 01-12-2021

I said "British Isles" not "United Kingdom" (or even "British Islands") (the chart also omits the Shetland and Channel Islands).


RE: ofn-enclosing-circle - Ofnuts - 01-13-2021

Updated again. Much better performance, and additional "Visible paths" source option.


RE: ofn-enclosing-circle - Krikor - 01-13-2021

(01-13-2021, 01:18 PM)Ofnuts Wrote: Updated again. Much better performance, and additional "Visible paths" source option.
The selection is now in some cases very simple.  Path
[attachment=5468]
Thx


RE: ofn-enclosing-circle - denzjos - 01-13-2021

Even two path are sometimes enough (nice work):

[attachment=5470]


RE: ofn-enclosing-circle - Ofnuts - 01-13-2021

The addition is really meant to include things that are already split over several paths (text, or the British Isles above, which is a couple hundred paths).

You can prove that the smallest circle is either:
  • defined by two of the given points and these two points are the end of a diameter
  • defined by three of the given points, and the circle is the circumcircle of the triangle
So if you have only a few pojnts, there are more direct ways (ofn-path-to-shape can draw the circle that goes through three points)


RE: ofn-enclosing-circle - Ottia Tuota - 01-14-2021

Yes, but you have no easy way of knowing which two points, or which three points. Your new plugin gives the answer right away. And the circle too. Here, on the left the circle is determined by two points. On the right, with almost the same path, it takes three points. Indeed a nice plugin.

[attachment=5471]