netgen/libsrc/occ/occ_vertex.cpp

25 lines
418 B
C++
Raw Normal View History

2021-11-28 20:14:41 +05:00
#include <BRepGProp.hxx>
#include <BRep_Tool.hxx>
#include "occ_vertex.hpp"
namespace netgen
{
OCCVertex::OCCVertex( TopoDS_Shape s )
2022-08-19 15:51:39 +05:00
: vertex(TopoDS::Vertex(s))
2021-11-28 20:14:41 +05:00
{
p = occ2ng(vertex);
}
Point<3> OCCVertex::GetPoint() const
{
return p;
}
size_t OCCVertex::GetHash() const
{
2022-08-19 15:51:39 +05:00
return vertex.HashCode(std::numeric_limits<Standard_Integer>::max());
2021-11-28 20:14:41 +05:00
}
}