Jump to content
tlewis3348

How do I get the plane of a circle?

Recommended Posts

In order to define a plane containing a circle, I need the center of the circle and the normal of the plane. Getting the center is simple using hm_getbestcirclecenter. I have not been able to find a means of getting the normal. If it were possible to get the coordinates of two points on the circle, I could use those with the coordinates of the circle center to calculate the normal. However, I haven't been able to find a means of getting those two points.

Share this post


Link to post
Share on other sites

I know that there is such command ( i read it already), but I can't remember

anway, you can try creating the circle (using *createbestcirclecenternode with last argument=1 (will create circle, too))

and then create 4 nodes on that circle to calculate normal vector

Share this post


Link to post
Share on other sites

It might be hm_getcoordinatesofpointsonline.

 

Example:

*createentitypanel lines "Select line";
set lineid [hm_info lastselectedentity lines];
foreach coord [hm_getcoordinatesofpointsonline $lineid "0 0.3 0.6"] {
 tk_messageBox -message "Coordinate = $coord";
}
 

Share this post


Link to post
Share on other sites
1 hour ago, Imoto said:

It might be hm_getcoordinatesofpointsonline.

 

Example:

*createentitypanel lines "Select line";
set lineid [hm_info lastselectedentity lines];
foreach coord [hm_getcoordinatesofpointsonline $lineid "0 0.3 0.6"] {
 tk_messageBox -message "Coordinate = $coord";
}
 

 

That works perfectly! Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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