netgen/libsrc/occ/occ_solid.hpp

25 lines
504 B
C++
Raw Normal View History

2021-11-28 20:14:41 +05:00
#ifndef FILE_OCC_SOLID_INCLUDED
#define FILE_OCC_SOLID_INCLUDED
#include <TopoDS.hxx>
#include <TopoDS_Solid.hxx>
#include "meshing.hpp"
namespace netgen
{
class OCCSolid : public GeometrySolid
{
TopoDS_Solid solid;
public:
OCCSolid(TopoDS_Shape dshape)
2022-08-19 15:51:39 +05:00
: solid(TopoDS::Solid(dshape))
2021-11-28 20:14:41 +05:00
{ }
2022-08-19 15:51:39 +05:00
size_t GetHash() const override { return solid.HashCode(std::numeric_limits<Standard_Integer>::max()); }
2021-11-28 20:14:41 +05:00
};
}
#endif // FILE_OCC_SOLID_INCLUDED