title


genchansansanは今日も戦う。

2017/01/28

各プリミティブの中心に点作成

float bound[] = primintrinsic(@OpInput1, "bounds", @primnum);
vector min = set(bound[0], bound[2], bound[4]);
vector max = set(bound[1], bound[3], bound[5]);
addpoint(geoself(),avg(min,max));
removeprim(geoself(),@primnum,1);