79aaac4e0c
classes that reference it. Added MUST_READ_ME.txt to the VisualStudio directory.
43 lines
965 B
Plaintext
43 lines
965 B
Plaintext
//C++ header - Open Scene Graph - Copyright (C) 1998-2002 Robert Osfield
|
|
//Distributed under the terms of the GNU Library General Public License (LGPL)
|
|
//as published by the Free Software Foundation.
|
|
|
|
#ifndef OSG_CONVEXPLANARPOLYGON
|
|
#define OSG_CONVEXPLANARPOLYGON 1
|
|
|
|
#include <osg/Plane>
|
|
|
|
#include <vector>
|
|
|
|
namespace osg {
|
|
|
|
class BoundingBox;
|
|
class BoundingSphere;
|
|
|
|
/** A class for representing convex clipping volumes made up.
|
|
* When adding planes, their normals should point inwards (into the volume) */
|
|
class SG_EXPORT ConvexPlanarPolygon
|
|
{
|
|
|
|
public:
|
|
|
|
ConvexPlanarPolygon();
|
|
|
|
typedef std::vector<osg::Vec3> VertexList;
|
|
|
|
void add(const Vec3& v) { _vertexList.push_back(v); }
|
|
|
|
VertexList& getVertexList() { return _vertexList; }
|
|
|
|
const VertexList& getVertexList() const { return _vertexList; }
|
|
|
|
protected:
|
|
|
|
VertexList _vertexList;
|
|
|
|
};
|
|
|
|
} // end of namespace
|
|
|
|
#endif
|