On 04/06/2014 at 07:06, xxxxxxxx wrote:
Hello,
Can anybody point me in the right direction regarding getting the centre points of objects and polygons in python.
Cinema4d has this built in (i.e. axis center, /points center) but i can't find it in the sdk or online.
I'm sure this must be fairly standard when manipulating geometry in Python and was wondering if anyone can provide any help on this topic
I just wrote a little script (for the polygon one) that selects a polygon index, and returns the four vector points in the list, and now I'm stuck, (mentally I could draw lines between the opposite vectors and where they intersect would( should) be the centre point of this polygon...
I've also been looking into centroid maths....
Any help would be much appreciated!
Thank you,
Simon