Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include <structureColoring/structures/CylinderPatch.h>
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 void CylinderPatch::computeOrientedBoundingBox(){
00030
00031 mBBVertices.push_back(Vec3(mAxisMin, -mRadius, -mRadius));
00032 mBBVertices.push_back(Vec3(mAxisMin, mRadius, -mRadius));
00033 mBBVertices.push_back(Vec3(mAxisMax, -mRadius, -mRadius));
00034 mBBVertices.push_back(Vec3(mAxisMax, mRadius, -mRadius));
00035 mBBVertices.push_back(Vec3(mAxisMax, -mRadius, mRadius));
00036 mBBVertices.push_back(Vec3(mAxisMax, mRadius, mRadius));
00037 mBBVertices.push_back(Vec3(mAxisMin, -mRadius, mRadius));
00038 mBBVertices.push_back(Vec3(mAxisMin, mRadius, mRadius));
00039
00040
00041 for(unsigned int i=0; i<mBBVertices.size();i++){
00042 Vec3 tmpPoint;
00043 transformToXYZCoords(tmpPoint, mBBVertices[i]);
00044 mBBVertices[i] = tmpPoint;
00045 }
00046 }