Jump to content
Developer Wiki and Function Reference Links ×

Left or Right edge Wall


team

Recommended Posts

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

Link to comment
Guest Frank Brault

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,

Link to comment
  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...