Q: DrawPolygonObject

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

On 03/10/2005 at 10:28, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.1 
Platform:   Windows  ; Mac  ;  
Language(s) :     C++  ;

---------
In the draw function of a plugin object ( a generator ) i want to draw a polygon object at a certain position.

But it seems that the object is always drawn with the matrix from bh->GetMg(). I don't know how to set my own matrix to move the object where i want to. Also it seems that the object's local matrix is completely ignored.

I thought that the DRAWPOLYOBJECT_LOCALMATRIX flag has something to do with it, but it seems to do nothing.

Has anyone exerience with this ?

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

On 14/10/2005 at 13:26, xxxxxxxx wrote:

I can't confirm this, at least not in 9.50x. With  DRAWPOLYOBJECT_LOCALMATRIX set the object seems to be drawn at bh->GetMg() * object->GetMl(). (Otherwise it seems to be drawn at object->GetMg().)

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

On 18/10/2005 at 03:03, xxxxxxxx wrote:

Sorry i have forgotten to tell that i had the DRAWPOLYOBJECT_EDITMODE flag set. It seems to work here, too if this flag is not set.