/usr/include/BALL/VIEW/PRIMITIVES/quadMesh.h is in libballview1.4-dev 1.4.3~beta1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: quadMesh.h,v 1.1.4.1 2007-03-25 21:26:11 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_QUADMESH_H
#define BALL_VIEW_PRIMITIV_QUADMESH_H
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
# include <BALL/VIEW/DATATYPE/colorExtensions.h>
#endif
namespace BALL
{
namespace VIEW
{
/** QuadMesh class.
An instance of QuadMesh represents an mesh with quadruples.
\par
\ingroup ViewPrimitives
*/
class BALL_VIEW_EXPORT QuadMesh
: public GeometricObject,
public MultiColorExtension
{
public:
///
struct Quadruple
{
///
Quadruple(Position p1, Position p2, Position p3, Position p4)
{
q1 = p1; q2 = p2; q3 = p3; q4 = p4;
}
///
Position q1, q2, q3, q4;
};
BALL_CREATE(QuadMesh)
/** Default Constructor.
The properties of this mesh are set to:
- color - to the color black
*/
QuadMesh();
/// Copy constructor
QuadMesh(const QuadMesh& mesh);
///
~QuadMesh(){}
// Method to get all vertices from a geometric object
virtual void getVertices(vector<Vector3>& vertices) const { vertices = vertex;}
/** The colors belonging to each vertex. If this list has *less* entries than
there are vertices in this mesh, we take the first element to color the whole
mesh. If it is *empty*, we use the color white.
*/
vector<Vector3> vertex;
vector<Vector3> normal;
vector<Quadruple> quad;
};
} } // namespaces
#endif // BALL_VIEW_PRIMITIV_QUADMESH_H
|