How do I get a poly point's position in worldspace



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 30/04/2011 at 21:22, xxxxxxxx wrote:

    I know how to use GetPoint() to get a polygon point's position in its local space, but how can I get it (or convert it) in worldspace? In other words, no matter what an object's parent is doing or its scale, I need the position of an individual polygon point in the world coordinate system. Thanks!



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/05/2011 at 03:36, xxxxxxxx wrote:

    Hi, multiply the objects global matrix with the point position.

    Cheers, Sebastian



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/05/2011 at 03:41, xxxxxxxx wrote:

    def GetAbsPoint(op,id) :  
      """  
      Returns the absolute position of a point 'id' of 'op'.  
      'op' must be a pointobject.  
      """  
      return    op.GetMg()*op.GetPoint(id)  
      
    print GetAbsPoint(op,0)
    

    Cheers, Niklas



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/05/2011 at 13:16, xxxxxxxx wrote:

    Thanks so much! I'm going to try this later today --



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/05/2011 at 23:20, xxxxxxxx wrote:

    This works perfectly, of course. I'm thankful you posted it, it would have taken me a long time to work this out.


Log in to reply