🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How do I get the plane of a circle?

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "Imoto"
    Altair Employee
    Updated by Imoto

    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';
    }
     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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!