How to get the direction of an edge?

How to get the direction of an edge?

futengda
Enthusiast Enthusiast
576 Views
2 Replies
Message 1 of 3

How to get the direction of an edge?

futengda
Enthusiast
Enthusiast

I'm using 3ds Max's `meshop.divideEdge` to split an edge, and the split ratio comes from calculating the edge's vector. This vector is determined by the two points A and B obtained via `meshop.getVertsFromEdge`. Therefore, the ratio I calculate matches the direction from A to B. However, since `getVertsFromEdge` returns a BitArray, the vertex IDs are always in ascending order. But the `divideEdge` method seems to use an edge direction that I can't determine to calculate the split position, which results in the `divideEdge` position being different from what I expected.

Therefore, I believe that only by knowing the true direction of the edge can I make the `divideEdge` function work as expected.

0 Likes
577 Views
2 Replies
Replies (2)
Message 2 of 3

Diffus3d
Advisor
Advisor

You might want to post this in the programming subforum, seems pretty specific.  This forum is mostly general usage, you probably won't get the same folks looking at your post here.

 

Best Regards,

0 Likes
Message 3 of 3

futengda
Enthusiast
Enthusiast
0 Likes