Yeah i know what dicing is. Thats how a reyes/rasterizing renderer works builta few ones in my time.
The Cut Faces tool isn't what I'm looking for, because I want to add lots of subdivisions in a regular fashion all at once.
Theers no such thing as doing it all at once, the computer has to do them in some order one at a time. Thus calling the thing severeal times results in same thing. So just because it would be tedious to do manually doesnt mean that its a big deal for the computer to take over your task.
So what you do is you is you call the tool in loop and viola its done in one go.
/* jooCCRequestedWSDice.mel 0.1
Authors: Janne 'Joojaa' Ojala
Testing: if it works after a suitably long time without
much problems let me know. Report any problems.
License: Creative Commons, Attribution, Share Alike
Request by: Michael Kory
About:
A simple script that will dice specified object in
worldspace
Install Instructions:
place this text in a file named:
jooCCRequestedWSDice.mel
that resides in your personal Maya script directory.
Usage example run:
$prism = `polyPrism -l 2 -w 1 -ns 3 -sh 1 -sc 0 -ax 0 1 0 -cuv 3 -ch 1`;
jooCCRequestedWSDice $prism[0] 10 10 10;
Changelist:
14.10.2012 - Original file
*****************************************************************/
global proc jooCCRequestedWSDice(string $obj, int $x, int $y, int $z){
float $bbox[]=`exactWorldBoundingBox $obj`;
$xlo= $bbox[0];
$xhi=$bbox[3];
$xstep = ($xhi-$xlo)/$x;
for ($i=0;$i<$x;$i++)
polyCut -pc ($xlo+$i*$xstep) 0 0 -ro -180 -90 0 -ps 1 2 $obj;
$ylo= $bbox[1];
$yhi=$bbox[4];
$ystep = ($yhi-$ylo)/$y;
for ($i=0;$i<$y;$i++)
polyCut -pc 0 ($ylo+$i*$ystep) 0 -ro -90 0 0 -ps 1 2 $obj;
$zlo= $bbox[2];
$zhi=$bbox[5];
$zstep = ($zhi-$zlo)/$z;
for ($i=0;$i<$z;$i++)
polyCut -pc 0 0 ($zlo+$i*$zstep) -ro 0 0 0 -ps 1 2 $obj;
}
if you run the example ite makes the prism. This si just a veeeery quick hack.
Ok you may want to run amerge vertex with a tiny distance after this.