00001 /* 00002 * Copyright (C) 2008 00003 * Robert Bosch LLC 00004 * Research and Technology Center North America 00005 * Palo Alto, California 00006 * 00007 * All rights reserved. 00008 * 00009 *------------------------------------------------------------------------------ 00010 * project ....: PUMA: Probablistic Unsupervised Model Acquisition 00011 * file .......: BoundingBox.h 00012 * authors ....: Benjamin Pitzer 00013 * organization: Robert Bosch LLC 00014 * creation ...: 07/25/2006 00015 * modified ...: $Date:2008-06-02 19:31:25 -0700 (Mon, 02 Jun 2008) $ 00016 * changed by .: $Author:benjaminpitzer $ 00017 * revision ...: $Revision:298 $ 00018 */ 00019 #ifndef BOUNDINGBOX_H 00020 #define BOUNDINGBOX_H 00021 00022 //== INCLUDES ================================================================== 00023 #include <vector> 00024 #include "rtc/rtcTriMesh.h" 00025 00026 //== NAMESPACES ================================================================ 00027 namespace rtc { 00028 00029 //== CLASS DEFINITION ========================================================== 00030 class BoundingBox 00031 { 00032 public: 00033 BoundingBox() {}; 00034 ~BoundingBox() {}; 00035 00042 bool apply(const TriMesh& mesh, Point& bbMin, Point& bbMax); 00043 00050 bool apply(const std::vector<TriMesh*> meshes, Point& bbMin, Point& bbMax); 00051 00052 }; 00053 00054 //============================================================================== 00055 } // NAMESPACE puma 00056 //============================================================================== 00057 #endif // BOUNDINGBOX_H defined 00058 //==============================================================================