Extrude does not work
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2005 at 02:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.0
Platform: Windows ;
Language(s) : C++ ;---------
Hi there,
i've got a problem here. I'm trying to extrude all polygons of a PolygonObject://Select all ModelingCommandData cd1; cd1.doc = GetActiveDocument(); cd1.op = pObj; cd1.mode = MODIFY_POLYGONSELECTION; if (!SendModelingCommand(MCOMMAND_SELECTALL, cd1)) GePrint("could not select all"); //Extrude BaseContainer bc; bc.SetReal(MDATA_EXTRUDE_OFFSET, 2.0); ModelingCommandData cd; cd.doc = GetActiveDocument(); cd.op = pObj; cd.bc = &bc; if (!SendModelingCommand(ID_MODELING_EXTRUDE_TOOL, cd)) GePrint("could not extrude");
am i missing something? the SendModelingCommand() for extrude returns false, but if i replace MDATA_EXTRUDE_OFFSET with MDATA_EXTRUDEINNER_OFFSET and ID_MODELING_EXTRUDE_TOOL with ID_MODELING_EXTRUDE_INNER_TOOL an inner extrude is done.
do i have to do something special for extrude (whereas inner extrude is workin with the "same" code)thanks in advance,
affa
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2005 at 02:13, xxxxxxxx wrote:
got it:
cd.mode = MODIFY_POLYGONSELECTION;
is needed... but why isn't this needed for an inner extrude? anyway... it's workinggreetings,
affa