SD
Size: a a a
SD
MA
MA
SY
MA
MA
AP
MA
AP
MA
AV
MA
// Get bound dimension
vector Max = getbbox_max(0);
vector Min = getbbox_min(0);
// Get point pos
float Xmax = Max.x;
float Ymax = Max.y;
float Zmax = Max.z;
float Xmin = Min.x;
float Ymin = Min.y;
float Zmin = Min.z;
//Get vector
vector pt0 = set(Xmax,Ymax,Zmax);
vector pt1 = set(Xmin,Ymin,Zmax);
vector pt2 = set(Xmin,Ymin,Zmin);
vector pt3 = set(Xmin,Ymax,Zmin);
// Create bound plane
addpoint(0,pt0);
addpoint(0,pt1);
addpoint(0,pt2);
addpoint(0,pt3);
IT
// Get bound dimension
vector Max = getbbox_max(0);
vector Min = getbbox_min(0);
// Get point pos
float Xmax = Max.x;
float Ymax = Max.y;
float Zmax = Max.z;
float Xmin = Min.x;
float Ymin = Min.y;
float Zmin = Min.z;
//Get vector
vector pt0 = set(Xmax,Ymax,Zmax);
vector pt1 = set(Xmin,Ymin,Zmax);
vector pt2 = set(Xmin,Ymin,Zmin);
vector pt3 = set(Xmin,Ymax,Zmin);
// Create bound plane
addpoint(0,pt0);
addpoint(0,pt1);
addpoint(0,pt2);
addpoint(0,pt3);
IT
vector max = getbbox_max(1);
vector min = getbbox_min(1);
int pt0 = addpoint(geoself(), set(min.x, max.y, max.z));
int pt1 = addpoint(geoself(), set(min.x, min.y, max.z));
int pt2 = addpoint(geoself(), set(min.x, min.y, min.z));
int pt3 = addpoint(geoself(), set(min.x, max.y, min.z));
addprim(geoself(), 'poly', pt0, pt1, pt2, pt3);
MA
vector max = getbbox_max(1);
vector min = getbbox_min(1);
int pt0 = addpoint(geoself(), set(min.x, max.y, max.z));
int pt1 = addpoint(geoself(), set(min.x, min.y, max.z));
int pt2 = addpoint(geoself(), set(min.x, min.y, min.z));
int pt3 = addpoint(geoself(), set(min.x, max.y, min.z));
addprim(geoself(), 'poly', pt0, pt1, pt2, pt3);
IT
IT
MA