BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
12 #endif
13 
14 #ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
16 #endif
17 
18 namespace BALL
19 {
20  namespace VIEW
21  {
28  : public GeometricObject,
29  public MultiColorExtension
30  {
31  public:
32 
34  struct Quadruple
35  {
38  {
39  q1 = p1; q2 = p2; q3 = p3; q4 = p4;
40  }
41 
43  Position q1, q2, q3, q4;
44  };
45 
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
#define BALL_CREATE(name)
Definition: create.h:62
vector< Vector3 > normal
Definition: quadMesh.h:68
Quadruple(Position p1, Position p2, Position p3, Position p4)
Definition: quadMesh.h:37
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
vector< Quadruple > quad
Definition: quadMesh.h:69
virtual void getVertices(vector< Vector3 > &vertices) const
Definition: quadMesh.h:61
vector< Vector3 > vertex
Definition: quadMesh.h:67