g5 Molinengo Posted February 2, 2013 Share Posted February 2, 2013 Hello to All Developing a script I noticed a strange behavior of the command ArcTO. I was actually using the command SetPolylineVertex, but then I saw that the problem is with the command arcto. I am attaching the following script which shows the problem. ClosePoly; BeginPoly; MoveTo(0.000000000000000,0.000000000000000); ArcTo(32.123124276903425,2.346004254109562,3.000000000000000); ArcTo(32.123124276903425,10.086440526200477,2.000000000000000); LineTo(50.899466312727853,-0.754085602578061); LineTo(51.399466312727824,0.111939801206404); ArcTo(31.123124276903400,11.818491333769316,3.000000000000000); ArcTo(31.123124276903400,3.275635883435621,2.000000000000000); LineTo(-0.072837648133600,0.997343810836742); EndPoly; The radius of curvature of the node 6 instead of being set to 3 is reduced to 2.466 I have noticed is the value of the corresponding point of the mid-air side 6. Is there any parameter that regulates Description of the property of any attachment? Thanks to all Quote Link to comment
Miguel Barrera Posted February 3, 2013 Share Posted February 3, 2013 Try this: ClosePoly; BeginPoly; MoveTo( 0.000000000000000, 0.000000000000000); LineTo(29.341637221304214, 2.142867709577429); ArcTo( 32.123124276903425, 2.346004254109562, 3.0); LineTo(32.123124276903425, 5.134899142087672); LineTo(32.123124276903425, 6.622338911062910); ArcTo( 32.123124276903425,10.086440526200482, 2.0); LineTo(35.123124276903347, 8.354389718631834); LineTo(50.899466312727846,-0.754085602578061); LineTo(51.399466312727824, 0.111939801206404); LineTo(35.623124276903283, 9.220415122416343); ArcTo( 31.123124276903386,11.818491333769327, 3.0); LineTo(31.123124276903400, 6.622338911062958); LineTo(31.123124276903400, 5.134899142087692); ArcTo( 31.123124276903393, 3.275635883435620, 3.0); LineTo(29.268799573170593, 3.140211520414197); LineTo(-0.072837648133600, 0.997343810836742); EndPoly; I got the points by drawing the object and then exporting the file to vectorscript. This method will save you a lot of time and frustration, specially when it is simple geometry Quote Link to comment
MullinRJ Posted February 3, 2013 Share Posted February 3, 2013 Pietro, ???When two consecutive polyline vertices are non-CornerPoints (eg., Arcto-Arcto, Arcto-Bezier, Arcto-Cubic, Bezier-Cubic, Bezier-Bezier, or Cubic-Cubic) then the midpoint between them will limit the maximum curvature of those two vertices. ???The way to increase the curvature at your problem vertex is to explicitly add a corner point between the two close Arcto points and slide it away from the larger radius vertex and toward the smaller radius vertex. Add the bold line to your code as shown to increase the radius of the sixth node: ??ArcTo(31.123124276903400, 11.818491333769316, 3.0); ??LineTo(31.1231242769034, 6.0); ??ArcTo(31.123124276903400, 3.275635883435621, 2.0); ???Now, with your polyline selected, when you hover your cursor over the polyline with the Reshape tool, you can see where the ends of the Are segments lie on your curve. Notice the new point lies between the two arcs on either side. HTH, Raymond Quote Link to comment
g5 Molinengo Posted February 4, 2013 Author Share Posted February 4, 2013 thanks I had already thought of a similar solution, but this problem is presented in a more complex script (the distance between the straight lines is variable and the radius of curvature and function of this distance) in which I do not know if the distance of the sides is such that fall into this problem. The program returns no error code Piero Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.