Flow123d
3.9.0-c09ffe475
src
mesh
bounding_box.cc
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file bounding_box.cc
15
* @brief
16
*/
17
18
#include "
system/system.hh
"
19
#include "
mesh/bounding_box.hh
"
20
21
22
const
double
BoundingBox::epsilon
= 64*numeric_limits<double>::epsilon();
23
24
25
BoundingBox::BoundingBox
(
const
vector<Point>
&points)
26
{
27
ASSERT_LT
( 0, points.size() );
28
29
auto
it
= points.begin();
30
max_vertex_
=
min_vertex_
= *
it
;
31
++
it
;
32
for
(;
it
!= points.end(); ++
it
)
expand
( *
it
);
33
}
34
BoundingBox::expand
void expand(const Point &point)
Definition:
bounding_box.hh:252
BoundingBox::max_vertex_
Point max_vertex_
maximal coordinates of bounding box
Definition:
bounding_box.hh:309
std::vector
Definition:
doxy_dummy_defs.hh:7
system.hh
ASSERT_LT
#define ASSERT_LT(a, b)
Definition of comparative assert macro (Less Than) only for debug mode.
Definition:
asserts.hh:301
BoundingBox::epsilon
static const double epsilon
stabilization parameter
Definition:
bounding_box.hh:65
BoundingBox::min_vertex_
Point min_vertex_
minimal coordinates of bounding box
Definition:
bounding_box.hh:307
BoundingBox::BoundingBox
BoundingBox()
Definition:
bounding_box.hh:75
bounding_box.hh
Input::Type
Definition:
balance.hh:41
Generated by
1.8.17