Hi Andrew,

There is probably an implicit assumption for edge rings that we are dealing 
with quads so I'm wondering if you  have tried the naive approach of just 
adding or subtracting 2 from the edge index?
--
Brent

From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrew Prostrelov
Sent: 14 June 2017 05:06
To: Official Softimage Users Mailing List. 
https://groups.google.com/forum/#!forum/xsi_list 
<[email protected]>
Subject: EdgeRing ALG for n-gons

Looking for edgering calculation algorithm for n-gons.

The formula i used so far was:
opposit_edge_index = all_edges[ (edge_CCW_index + (len(all_edges) / 2) ) % 
len(all_edges) ]
For example if we want to find opposite hour to 9 am via this formula we got:
opposit_hour_index = 12[ (9 + (12 / 2) ) % 12 ] = 3

Unfortunately this formula approach is not the same XSI native edge ring uses.
http://c2n.me/3Liop7C
I perform edge ring selection in direction (1) > (2) edge. And as you can see 
the opposite to 11 edge is edge with number 40.
But according formula above it should be edge number 51.

The friend of mine suggest that XSI use angle in opposite edge calculation.
But i suppose that any angle calculation in edge ring would gave us very 
inaccurate results.

<<attachment: winmail.dat>>

------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to