-
1. Re: Circle radius of known length?
Mylenium Feb 10, 2014 8:35 AM (in response to Az4r14h)And your point is exactly what? Even if you were able to input the values down to the nanometer the axctual precision would depend on:
a) the number of iteration to calculate the intermediate points in a path.
b) the precision of your rendering device, be that screen or physical output via printer or plotter
c) yes, AI's internal precision limits
Sorry, but you are trying to build castles in the sky here and chasing an illusion as there possibly wouldn't even be a way to reproduce your perfect circle physically or on-screen, for that matter.
Mylenium
-
2. Re: Circle radius of known length?
Jacob Bugge Feb 10, 2014 9:03 AM (in response to Az4r14h)Az,
You may (Smart Guides are your friends):
1) Create a hexagon with radius 400 and move its centre to a known spot such as X=Y=0;
2) With the Ellipse Tool Alt/Option+ShiftDrag from the centre to one of the corners (Smart Guides say anchor).
I believe that is as accurate and failsafe you can do it with the help of illy.
-
3. Re: Circle radius of known length?
Az4r14h Feb 10, 2014 9:17 AM (in response to Mylenium)The point is scalability. If one is trying to meet two circles at one point, from two fixed points i.e. no gap or overlap, then a single point is needed. I find it impossible to believe that a software that can create a seven pointed star, which I thought was pretty exact... perhaps it isn't i haven't looked too closely... cannot average a point halfway between two points that have been created with the mathmatical distance of 2*(200*sqrt (3)).
-
4. Re: Circle radius of known length?
CarlosCanto Feb 10, 2014 11:04 AM (in response to Az4r14h)see if this script helps
// create circle with know Radius // carlos canto 02/10/14 // http://forums.adobe.com/thread/1402894?tstart=0 if (app.documents.length>0) createKnownCircle (); else alert ("no document to draw the circle"); function createKnownCircle() { var idoc = app.activeDocument; var title = "Create Circle with Known Radius as in Number*SQRT(x)"; var number = Number(prompt ("Formula: Radius = Number*SQRT(x), enter Number in points", 200, title)); var sqrtFactor = Number(prompt ("Formula: Radius = Number*SQRT(x), enter (x)", 3, title)); // sqrt(1) = 1 var factor = Math.sqrt (sqrtFactor); var width = number*factor*2; var height = number*factor*2; var top = 0+idoc.height; var left = 0; var icircle = idoc.pathItems.ellipse(top, left, width, height); } -
5. Re: Circle radius of known length?
Jacob Bugge Feb 10, 2014 11:04 AM (in response to Az4r14h)Az,
We are not just talking about dragging from ine point to the other with the Line Segment Tool and then Object>Path>Add Anchor Points, which will give you the midpoint, and which you may delete again with its path once it has served its purpose, are we?
-
6. Re: Circle radius of known length?
Az4r14h Feb 10, 2014 11:05 AM (in response to Jacob Bugge)This answer is close.But with a hexagon that has a radius of 400, I need a circle that touches the midpoint of one the the sides and not the corner. Here is a picture. It seems that after playing with the image I can use the intersecting point (using smart guides) to draw a radius between the two small red circles. But I was really hoping to find a faster way to create the circle without drawing extra lines. I guess the "castle in the sky" reference is somewhat true regarding my expectations after the price of the software (que les Miserables soundtrack). But I'm really loving being able to put some of my artwork into vector form. Here's a picture of what I mean.. I want to create a radius between the two red circles. Thanks for the help.

-
7. Re: Circle radius of known length?
Az4r14h Feb 10, 2014 11:17 AM (in response to Jacob Bugge)I think that is exactly what I wanted to do... just without drawing the line segment in the first place. Simple enough anyway. Thank you for simplifying everything so well.
-
8. Re: Circle radius of known length?
Jacob Bugge Feb 10, 2014 2:06 PM (in response to Az4r14h)Az,
If you drag with the Line Segment > Ellipse Tool as described in post #2, you will get the incircle, which has the radius 200*sqrt(3).
As you drag, the circle will grow but lag behind the cursor so when the cursor reaches the corner the circle reaches the centre(s) of the side(s).
Halving the line between the red circles shown in post #6 may be done as described in post #5.
Or you may need to clarify a bit more.
Edit: Cross posting.
Incircle may be the wrong word, possibly it should be inscribed circle.
And you are welcome.
Edit edit: Incircle may be used for (regular) polygons in general, not just triangles.
Edit edit edit: Sorry, see correction at the top.
To make amends, below is a set of screenshots showing the suggestion in post #2, at half size (to have it fit within the posting width).
Unfortunately, the cursor is invisible, but in the first and third screenshot you can see what Smart Guides say about it.
All screenshots show the hexagon with its centre at X = Y = 0.
The first screenshot and shows the the moment just before Alt/Option+ShiftDragging, going from Step 1) to Step 2) (Smart Guides say intersect because it is the intersection of the Artboard boundaries at X = Y = 0).
The second screenshot shows the dragging underway (the invisible cursor being up to the right, further than the circle).
The third screenshot shows the ending of the dragging where the cursor has reached the top right corner Anchor Point (Smart Guides say anchor) and the circle has reached the midpoint(s) of the side(s).
-
9. Re: Circle radius of known length?
pixxxel schubser Feb 10, 2014 6:43 PM (in response to CarlosCanto)Hi Az4r14h,
Even if your question has already been marked as solved - here is little script (like Carlo Cantos script) for an outer and an inner circle with your wish radius.
// HexagonWithOuterAndInnercircle.jsx // create a hexagon with outer circle and inner circle // pixxxelschubser 02/10/14 // http://forums.adobe.com/thread/1402894?tstart=0 var aDoc = app.documents.add(); var radius = Number(prompt ("Please enter new radius in points.\nRadius will multiplied with the square root of 3", 200)); var radiusA = radius*Math.sqrt(3); var radiusB = radiusA*Math.sqrt(3)/2; var a = aDoc.pathItems.ellipse (radiusA/2, 0-radiusA/2, radiusA, radiusA, false); a.filled = false; a.stroked = true; var b = aDoc.pathItems.polygon (0, 0, radiusA/2, 6, false); b.filled = false; b.stroked = true; var c = aDoc.pathItems.ellipse (radiusB/2, 0-radiusB/2, radiusB, radiusB, false); c.filled = false; c.stroked = true;Perhaps this helps a little bit.
Have fun
-
10. Re: Circle radius of known length?
W_J_T Feb 10, 2014 11:26 PM (in response to pixxxel schubser)Goof stuff, CarlosCanto , pixxxel schubser. Edit: Jacob Bugge as well for the non-scripted approach.





