THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/02/2003 at 02:11, xxxxxxxx wrote:
Cinema 4D Version: 7
Platform: Windows ; Mac ;
Language(s) : C.O.F.F.E.E ;
I am trying to knife a cube (300,300,300).
From SendModelingCommand I came to know that, we have to pass P1, P2, V1 and V2 to use knife tool.
I am clear about P1 and P2, but from COFFEE help i am not getting the clear picture about V1 and V2. ie. Ray tracing vector. Can anybody explain me about this?
I used the following code: I am trying to knife the cube in horizontal way...
obj = GetActiveObject(doc);
con = obj->GetContainer();
SendModelingCommand(MCOMMAND_KNIFE, doc, obj, con, MODIFY_ALL);
What should I use for V1 and V2?
On 21/02/2003 at 05:38, xxxxxxxx wrote:
you cannot use the knife for it is an interactive command. You can let the user then use the knife but you cannot use it through your code. So you have to handle the subdivision yourself.
On 22/02/2003 at 23:54, xxxxxxxx wrote:
V1 and V2 are projection vectors for P1 and P2. They should point into the screen from where you are looking. (With just a single line between P1 and P2, C4D could not know where the cut should be done.)
The knife can be used non-interactively with the P1, P2, V1 and V2 parameters, afaik.