msbGrid
1.0
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
triangle.hh
Go to the documentation of this file.
1
/*****************************************************************************
2
* This program is part of the msbGrid software *
3
* *
4
* msbGrid stands for multi-structured block Grid generator *
5
* *
6
* msbGrid is a free software: you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation, either version 2 of the License, or *
9
* (at your option) any later version. *
10
* *
11
* msbGrid is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* See the file COPYING for full copying permissions. *
17
*****************************************************************************/
23
#ifndef _TRIANGLE_HH_
24
#define _TRIANGLE_HH_
25
26
#include <
polygon.hh
>
27
28
namespace
msbGrid
29
{
30
class
Triangle;
31
}
32
33
class
msbGrid ::
Triangle
:
public
msbGrid ::
Polygon
< 3 >
34
{
35
public
:
36
typedef
msbGrid :: Polygon< 3 >
ParentT
;
37
38
typedef
msbGrid :: Scalar
Scalar
;
39
enum
{
dim
= 2 };
40
41
typedef
msbGrid :: Edge
Edge
;
42
typedef
msbGrid :: Point
Point
;
43
44
Triangle
(
const
std :: vector< Edge * > vEd) :
ParentT
(vEd)
45
{}
46
47
~Triangle
() {}
48
49
void
infos
()
50
{
51
std :: cout <<
"# triangle : "
;
52
53
std :: cout <<
" , edgeNumber_ = "
<< this->edgeNumber_
54
<<
" , verticesNumber_ = "
<< this->
verticesNumber_
;
55
56
std :: cout <<
" , color = "
<<
colorName
( this->
color
() )
57
<<
" , Id = "
<< this->
Id
()
58
<<
" , mark = "
<< this->
mark
()
59
<<
" , onBlockBoundary = "
<< this->
onBlockBoundary
();
60
61
for
(
int
i = 0; i < this->
verticesNumber_
; ++i ) {
62
this->
vPt
() [ i ]->infos();
63
}
64
65
std :: cout <<
"\n"
;
66
}
67
};
68
69
#endif
/* #ifndef _TRIANGLE_HH_ */
msbgrid
geo
triangle.hh
Generated by
1.8.3.1