Notifications
Clear all

[Closed] ExtrudeFaces c++

where do you set the extrude distance? Taking this from the sample and I get though to the print “In topoChange”. The function does nothing at the moment but not sure where to add my extrude amount. I think I’m close


 float distance = 2.2;
 	bool ret = false, topoChange = false;
 	
 	MNMesh* mm = &pObj->GetMesh();
 	MNTempData mtd(mm);
 	for (int i=0; i< mm->numf; i++) {
 		mm->f[i].SetFlag(MN_USER); // I hope this does all
 	}
 	MNFaceClusters fClust (*mm, MN_USER);
 
 	topoChange = mm->ExtrudeFaces(MN_USER);
 	if (topoChange) {
 		ExecuteMAXScriptScript(_T("print \"In topoChange\""), 0, 0);
 		mtd.Invalidate(TOPO_CHANNEL);
 		mtd.freeBevelInfo();
 		mtd.freeAll();
 	}
 	if (ret) mm->GetExtrudeDirection(mtd.ChamferData(), MN_USER);