3
« on: August 11, 2016, 07:22:01 am »
// Connectors
sample.addTriangle(lowerLeftUp,0,0,upperLeftFront,0,0.1f,lowerRightUp,0.1f,0);
sample.addTriangle(lowerRightUp,0.1f,0,upperLeftFront,0,0.1f,upperRightFront,0.1f,0.1f);
sample.addTriangle(lowerLeftFront,0,0,lowerLeftBottom,0,0.1f,lowerRightFront,0.1f,0);
sample.addTriangle(lowerRightFront,0.1f,0,lowerLeftBottom,0,0.1f,lowerRightBottom,0.1f,0.1f);
sample.addTriangle(upperLeftBottom,0,0,lowerLeftBack,0,0.1f,upperRightBottom,0.1f,0);
sample.addTriangle(upperRightBottom,0.1f,0,lowerLeftBack,0,0.1f,lowerRightBack,0.1f,0.1f);//
sample.addTriangle(upperRightUp,0,0,upperRightBack,0,0.1f,upperLeftUp,0.1f,0);
sample.addTriangle(upperLeftUp,0.1f,0,upperRightBack,0,0.1f,upperLeftBack,0.1f,0.1f);
sample.addTriangle(lowerRightFront,0,0,lowerLeftRight,0,0.1f,upperRightFront,0.1f,0);
sample.addTriangle(upperRightFront,0.1f,0,lowerLeftRight,0,0.1f,upperLeftRight,0.1f,0.1f);
sample.addTriangle(lowerRightRight,0,0,lowerRightBack,0,0.1f,upperRightRight,0.1f,0);
sample.addTriangle(upperRightRight,0.1f,0,lowerRightBack,0,0.1f,upperRightBack,0.1f,0.1f);
sample.addTriangle(lowerLeftBack,0,0,lowerLeftLeft,0,0.1f,upperLeftBack,0.1f,0);
sample.addTriangle(upperLeftBack,0.1f,0,lowerLeftLeft,0,0.1f,upperLeftLeft,0.1f,0.1f);
sample.addTriangle(lowerRightLeft,0,0,lowerLeftFront,0,0.1f,upperRightLeft,0.1f,0);
sample.addTriangle(upperRightLeft,0.1f,0,lowerLeftFront,0,0.1f,upperLeftFront,0.1f,0.1f);
sample.addTriangle(upperLeftUp,0,0,upperLeftLeft,0,0.1f,lowerLeftUp,0.1f,0);
sample.addTriangle(lowerLeftUp,0.1f,0,upperLeftLeft,0,0.1f,upperRightLeft,0.1f,0.1f);
sample.addTriangle(upperRightRight,0,0,upperRightUp,0,0.1f,upperLeftRight,0.1f,0);
sample.addTriangle(upperLeftRight,0.1f,0,upperRightUp,0,0.1f,lowerRightUp,0.1f,0.1f);
sample.addTriangle(lowerLeftRight,0,0,lowerRightBottom,0,0.1f,lowerRightRight,0.1f,0);
sample.addTriangle(lowerRightRight,0.1f,0,lowerRightBottom,0,0.1f,upperRightBottom,0.1f,0.1f);
sample.addTriangle(lowerLeftLeft,0,0,upperLeftBottom,0,0.1f,lowerRightLeft,0.1f,0);
sample.addTriangle(lowerRightLeft,0.1f,0,upperLeftBottom,0,0.1f,lowerLeftBottom,0.1f,0.1f);
//Fillers
sample.addTriangle(lowerLeftUp,0,0,upperRightLeft,0,0.1f,upperLeftFront,0.1f,0);
sample.addTriangle(lowerRightUp,0.1f,0,upperRightFront,0,0.1f,upperLeftRight,0.1f,0.1f);
sample.addTriangle(upperRightUp,0,0,upperRightRight,0,0.1f,upperRightBack,0.1f,0);
sample.addTriangle(upperLeftLeft,0.1f,0,upperLeftUp,0,0.1f,upperLeftBack,0.1f,0.1f);
sample.addTriangle(lowerLeftFront,0,0,lowerRightLeft,0,0.1f,lowerLeftBottom,0.1f,0);
sample.addTriangle(lowerRightFront,0.1f,0,lowerRightBottom,0,0.1f,lowerLeftRight,0.1f,0.1f);
sample.addTriangle(upperRightBottom,0,0,lowerRightBack,0,0.1f,lowerRightRight,0.1f,0);
sample.addTriangle(upperLeftBottom,0.1f,0,lowerLeftLeft,0,0.1f,lowerLeftBack,0.1f,0.1f);
sample.build();