Center point of a circle
-
I didn't load a ruby, I have center point in my edit menu when circle is highlighted and I also have center point in my context menu. SU6 Pro 6.0.1099
Mike
-
Hi Susan, hi folks.
SU 6 Pro Version 6.0.1099 for PC.
See the attached JPG files.
Just ideas.
http://www.sketchucation.com/forums/scf/sas/Newbie/PointAtCenter2.jpg
http://www.sketchucation.com/forums/scf/sas/Newbie/PointAtCenter3.jpg
-
Doh. I missed the bit about highlighting just the circumferenece. I have it now. Thanks. But generally I think it is faster to use the 'remind" inference. Only when I need to keep the centerpoint for some other use later, would I need the construction point.
-
thank Gaieus for the answer
Andrew -
Just a thought... it's should be possible to make a ruby to always add a centerpoint when drawing a circle.
-
would be very useful
-
Hi, I have also had trouble finding circle centre.
What Susan didn't tell us was, "to use the pencil tool on the segments".
If you draw a circle then still using the pencil the Centre and segments highlight.
-
Susan is right. There is no "Point at center" on my SU 6 either. You guys must be drinking a Ruby drink.
Joe....
-
i don't remember where i found it (i suppose somewhere in this forum), but this ruby is very useful: just select the circle and then click Plugins>Set Center Point.
-
And that's not only for circles but other 2D and 3D shapes, too!
Etremely useful when you want to move and/or precisely align complex geometry. -
@chiefwoodworker said:
Susan is right. There is no "Point at center" on my SU 6 either. You guys must be drinking a Ruby drink.
Joe....
No, Joe,
We have only checked all the checkboxes in the Window>Preferences>Extensions dialog. Actually I don't remember if it is the Ruby Script Examples or Utilities Tools box that adds the Point At Center command.
Anssi
-
It's important to understand the method used by the script for finding the centerpoint. It creates a BoundingBox around the selected entities, and the centerpoint is the center of the BoundingBox.
For a circle, this centerpoint happens to be the centerpoint of the circle. This is not true for an arc, or other non-symmetrical 3d objects.
-
Dear All,
The inferencing method to find the centre only works if the circle is unexploded, which is not always the case. Very often I need to find the centre of a circle that has somehow lost its circle entity status. Using weld.rb to rejoin all the segments doesn't work as the entity status changes from 'circle' to 'curve', and inferencing won't work. Usually, I draw two temporary diagonals and then place a construction point at the intersection.
Here is a suggestion for a ruby:
- call it curve_centre.rb,
- select three (3) consecutive end-points (two adjoining line entities), and voila,
- a construction point magically appears at the intersection of the mid-point normals.
Has anyone come across such a ruby?
Regards,
Bob -
watkins,
I started some code to find the center of an arc from line segments. My method used some calculations to find the bulge., but I like your idea - it's easier to write. Actually, you would need only 2 segments, right?
-
Dear Jim,
Yes, the method could be made to work with only two adjacent line segments. The method would also be independent of the number of line segments making up the arc or circle provided that all the mid-point normals past through the same point in space.
Bob
-
Hi folks.
I know it is obvious but just in case.
With exploded circles and arcs, you can use this procedure:
1 - Draw the perpendicular from the midpoint of two adjacent segments. TWo lines to draw.
2 - Their intersection point is the center of the circle.
Just ideas.
-
Actually, yes. You can draw a 2-segment arc over top of any 2 segments, then use the Point at Center option...
-
I know this a rather old thread, but I thought it worth bringing it to the surface for those (like me) who didn't know. Finding the centre of a circle or curve often seems difficult. I've been using the inference technique, but it doesn't always work easily, so I did some searching & arrived here.
And yes, provided Windows>Preferences>Extensions>RubyScript Examples is checked... then you can context click the circle or curve and 'Point to centre'. Hurrah! another gem discovered! -
@jean lemire said:
With exploded circles and arcs, you can use this procedure:
1 - Draw the perpendicular from the midpoint of two adjacent segments. TWo lines to draw.
2 - Their intersection point is the center of the circle.
Just ideas.
Nice tip, Jean. I guess they do not have to be adjacent, even.
-
A little icing on the cake, if you want a plugin:
Chris Fullmer's Exploded Arc Centerpoint Finder. Places a C point where the center of a fragmented arc or circle is supposed to be.
Advertisement