Flow123d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
bounding_box.cc
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2007 Technical University of Liberec. All rights reserved.
4
*
5
* Please make a following refer to Flow123d on your project site if you use the program for any purpose,
6
* especially for academic research:
7
* Flow123d, Research Centre: Advanced Remedial Technologies, Technical University of Liberec, Czech Republic
8
*
9
* This program is free software; you can redistribute it and/or modify it under the terms
10
* of the GNU General Public License version 3 as published by the Free Software Foundation.
11
*
12
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along with this program; if not,
17
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021110-1307, USA.
18
*
19
*
20
* $Id: bounding_box.cc 1567 2012-02-28 13:24:58Z jan.brezina $
21
* $Revision: 1567 $
22
* $LastChangedBy: jan.brezina $
23
* $LastChangedDate: 2012-02-28 14:24:58 +0100 (Tue, 28 Feb 2012) $
24
*
25
*
26
*/
27
28
#include "
system/system.hh
"
29
#include "
mesh/bounding_box.hh
"
30
31
32
const
double
BoundingBox::epsilon
= 64*
numeric_limits<double>::epsilon
();
33
34
35
BoundingBox::BoundingBox
(
const
vector<Point>
&points) {
36
ASSERT_LESS
( 0, points.size() );
37
38
auto
it = points.begin();
39
max_vertex_
=
min_vertex_
= *it;
40
//cout << "points: " << points.size() << endl;
41
//for(int i =0;i<points.size();i++) cout << points[i] << endl;
42
++it;
43
for
(; it != points.end(); ++it)
expand
( *it );
44
}
45
Generated on Thu May 29 2014 23:14:48 for Flow123d by
1.8.4