gmio/tests/fake_support/opencascade/StlMesh_Mesh.hxx
Hugues Delorme 36a4fd281e tests: add fake_support
fake_support allows to test compilation of gmio_support
is successful. It provides fake sources of the required
3rd party libraries (Qt and OpenCascade).
Fake sources allows to quickly check if nothing is broken
in gmio_support after API changes.
It will also be useful for CI.
2015-09-02 12:07:17 +02:00

45 lines
1.1 KiB
C++

#ifndef _StlMesh_Mesh_HeaderFile
#define _StlMesh_Mesh_HeaderFile
#include <Handle_StlMesh_Mesh.hxx>
#include <StlMesh_SequenceOfMeshTriangle.hxx>
#include <TColgp_SequenceOfXYZ.hxx>
class StlMesh_Mesh
{
public:
StlMesh_Mesh()
{ }
virtual void AddDomain()
{ }
virtual int AddTriangle(
const int /*V1*/, const int /*V2*/, const int /*V3*/,
const double /*Xn*/, const double /*Yn*/, const double /*Zn*/)
{ return -1; }
virtual int AddOnlyNewVertex(
const double /*X*/, const double /*Y*/, const double /*Z*/)
{ return -1; }
virtual int NbTriangles(const int DomainIndex) const
{ return 0; }
virtual const StlMesh_SequenceOfMeshTriangle& Triangles(
const int /*DomainIndex = 1*/) const
{
static StlMesh_SequenceOfMeshTriangle triSeq;
return triSeq;
}
virtual const TColgp_SequenceOfXYZ& Vertices(
const int /*DomainIndex = 1*/) const
{
static TColgp_SequenceOfXYZ vertSeq;
return vertSeq;
}
};
#endif // _StlMesh_Mesh_HeaderFile