Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/02/2009 at 17:03, xxxxxxxx wrote:
User Information: Cinema 4D Version: 10.1 Platform: Windows ; Mac ; Language(s) : C++ ;
--------- Hi,
I already had a look at the Neighbor class, but didn't quite find what I was looking for...
I'm trying to get the neighbor polygons of a given polygon. Finally, I want to make a function that starts with a polygon and selects a random neighboar polygon. Then again a random neighbor of that poly, and so on...
Any tipps? Thanks in advance
Greetings, Jack
On 09/02/2009 at 19:52, xxxxxxxx wrote:
The easiest solution besides the Neighbor class would be to check the other polygons for one matching vertex index. If there is one, see if there is a matching vertex index on either side of it.
I would think that Neighbor.GetEdgePolys() would be best. Pass in each edge in turn to get all of the neighbors. Pass in a random edge to get random neighbors
On 10/02/2009 at 04:15, xxxxxxxx wrote:
That seems like a good approach. Thanks Robert, I'll try that
Cheers, Jack