Jump to content

Radius of an Arc?


Recommended Posts

Hello all,

 

This feels really simple, and I'm a bit embarrassed to ask the question, but how does one find the radius of an arc object?

 

vs.GetArc gives me startAngle and sweepAngle, and vs.HCenter will give me the centerpoint of the arc, but then how do I get a point on the actual arc to measure, without using PtOnArc or something ugly along those lines?

 

Thank you for your help!

Edited by Juliensv
Link to comment

Hello,

 

to solve problems like this i like to look into Marionette nodes. There is a Marionette Node "Get Arc" and the first output is the radius and this is how it was written in the node:

 

arcvalues = vs.GetArc(h)
perim = vs.HPerim(h)
sweepR = vs.Deg2Rad(arcvalues[1])
radius = perim / sweepR

 

Regards,

Letti

  • Like 2
Link to comment

 

This is perfect! I didn't realize that HPerim on an arc would give the arc length. But it does make sense now that I think about it.

It's funny because I was actually trying to find the arc length of the arc in the first place...

 

Anyways thank you for the help, as well as the tip on looking in the Marionette Nodes!

Link to comment

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...