team 0 Posted March 11, 2009 Hello, I want to make a round wall in Vectorscript (that's not the Problem) at the moment it looks like this: {I need the center at 0,0, therefore I need the script} Procedure WallZero; VAR X1, Y1, X2, Y2 :Real; BEGIN GetPt(X1, Y1); GetPt(X2, Y2); RoundWall(0, 0, X1, Y1, X2, Y2); End; Run(WallZero); Now i want to draw it with the left/right edge option, but I didn't found a function for this... Can someone help me? Thanks M Quote Share this post Link to post
Frank Brault 34 Posted March 12, 2009 Hi M. If you wanted to draw at 0,0 you could do this by hand by selecting the round wall tool. Press the tab key and enter 0 into the x field, tab and 0 into the y field. If you want to use a script, you can calculate the radius of the round wall center line with a formula like radius of right edge - 1/2 wall thickness, or radius left edge + 1/2 wall thickness. If you are getting the parameters by input from the user, like the example script in the documentation for the RoundWall function, you could calculate the coordinate parameters to adjust for the desired edge offset. I didn't see a left/right edge option in the documentation, either. hth, Quote Share this post Link to post
team 0 Posted March 13, 2009 Thank you, so I will calculate.... Bye M Quote Share this post Link to post
Gerard Jonker 17 Posted March 21, 2009 Hi M, Have a look here: http://www.vectorlab.info/index.php?title=Round_Walls I might have written something you could use. Gerard Quote Share this post Link to post
team 0 Posted April 1, 2009 Dank je well, Gerard. I tried it by my own (and had a look on your script while doing it). Its not pretty but works for me. I will post it soon. Thanks for help! Quote Share this post Link to post