BaseDraw::DrawPolygonObject()
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/01/2007 at 14:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6, 10
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
Hi,DrawPolygonObject doesn't draw the object, if the center of the world is outside the view, although all polys are in the visible area. The object is not inserted into the document.
My idea to fix that, is to position the object's origin in the middle of the polygons. But I hope to get another solution here, because that wouldn't work in all situations.
Any ideas?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/01/2007 at 16:35, xxxxxxxx wrote:
Yes, this seems to be the standard behavior for DrawPolygonObject() - if the origin is outside the view frustrum, the entire object is clipped. My Tool does this as well and have never found a way around it.
Hopefully someone with a way to solve this will respond.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/01/2007 at 03:23, xxxxxxxx wrote:
I can confirm this as well. I will ask the developers for a workaround.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/01/2007 at 16:26, xxxxxxxx wrote:
Ok, to make it work Cinema needs the bounding box of the polygon object. You do this by submitting the MSG_UPDATE message after you have changed or created the polygon object.
Call
mypoly->Message(MSG_UPDATE);
after the polygon creation/change.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/01/2007 at 16:49, xxxxxxxx wrote:
Thanks, Matthias!
Will try this immediately and let you know the results.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/01/2007 at 17:09, xxxxxxxx wrote:
That works! Just calling obj->Message(MSG_UPDATE) after each obj->SetMg() and after creation. No more full clipping when the center goes out of view.
Thanks much!