On 26/02/2016 at 04:43, xxxxxxxx wrote:
I want to knife one polygon over its diagonal.
So from poly.a to poly.c. In fact triangulate without using triangulation.
I found this example, but I do not how to define v1 and v2.
P1 = poly.a and P2 = poly.c
MDATA_KNIFE_RESTRICT = True to Knife only the selected polygon.
bc = c4d.BaseContainer()
bc.SetVector(c4d.MDATA_KNIFE_P1, p1)
bc.SetVector(c4d.MDATA_KNIFE_P2, p2)
bc.SetVector(c4d.MDATA_KNIFE_V1, v1)
bc.SetVector(c4d.MDATA_KNIFE_V2, v2)
bc.SetBool(c4d.MDATA_KNIFE_RESTRICT, True)
bc.SetBool(c4d.MDATA_KNIFE_SELECTCUTS, False)
utils.SendModelingCommand(command = c4d.MCOMMAND_KNIFE,
list = [op],
bc = bc,
flags = c4d.MODELINGCOMMANDFLAGS_CREATEUNDO)
-Pim