Get arc data from query
Lucas_Crupi
Member Posts: 5 EDU
Using evCurveDefinition I noticed that there is no return value for an arc query, and it only returns the information about the circle which the arc exists on. Is there any function that will return the endpoints and direction of an arc using feature script or am I missing something?
0
Comments
-
evEdgeTangentLines with parameters equal to [0, 1] will return two lines which are tangent to the input arc at each end. Specifically, the direction of each line will be tangent to the respective end of the arc, and the origin of each line will be equal to the end of the arc. Alternatively, you can use qEdgeVertex to get queries for the vertices at the end of the arc, and then use evVertexPoint to get the corresponding 3D vector (although this won't give you the direction of the arc).
Software Developer at Epic SystemsFRC Design Mentor - Team 10553 Orange Overdrive0 -
If you need to know the direction of the arc, you could check its length to see if it is > or < 180 degrees. if its 180 degrees exactly, just check its mid point using evEdgeTangentLine to see which quadrant it lies on.
i think its counter clockwise relative to the coordinate system, but i also think that it can be inverted. I remember once dealing with this but cannot remember exactly how i figured it out. Sorry I don't know more.0 -
the points of evEdgeTangentLine at [0,0.5,1] I was able to find the endpoints of the arc and the rotation direction. Thank you!1

