BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
PRIMITIVES
quadMesh.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: quadMesh.h,v 1.1.4.1 2007-03-25 21:26:11 oliver Exp $
5
//
6
7
#ifndef BALL_VIEW_PRIMITIV_QUADMESH_H
8
#define BALL_VIEW_PRIMITIV_QUADMESH_H
9
10
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
11
# include <
BALL/VIEW/KERNEL/geometricObject.h
>
12
#endif
13
14
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
15
# include <
BALL/VIEW/DATATYPE/colorExtensions.h
>
16
#endif
17
18
namespace
BALL
19
{
20
namespace
VIEW
21
{
27
class
BALL_VIEW_EXPORT
QuadMesh
28
:
public
GeometricObject
,
29
public
MultiColorExtension
30
{
31
public
:
32
34
struct
Quadruple
35
{
37
Quadruple
(
Position
p1,
Position
p2,
Position
p3,
Position
p4)
38
{
39
q1 = p1; q2 = p2; q3 = p3; q4 = p4;
40
}
41
43
Position
q1, q2, q3,
q4
;
44
};
45
46
BALL_CREATE
(
QuadMesh
)
47
48
52
QuadMesh
();
53
55
QuadMesh(const QuadMesh& mesh);
56
58
~QuadMesh(){}
59
60
// Method to get all vertices from a geometric object
61
virtual
void
getVertices
(vector<Vector3>& vertices)
const
{ vertices = vertex;}
62
67
vector<Vector3>
vertex
;
68
vector<Vector3>
normal
;
69
vector<Quadruple>
quad
;
70
};
71
72
} }
// namespaces
73
74
#endif // BALL_VIEW_PRIMITIV_QUADMESH_H
Generated by
1.8.3.1