netgen/libsrc/occ/occ_vertex.cpp
2022-08-19 12:51:39 +02:00

25 lines
418 B
C++

#include <BRepGProp.hxx>
#include <BRep_Tool.hxx>
#include "occ_vertex.hpp"
namespace netgen
{
OCCVertex::OCCVertex( TopoDS_Shape s )
: vertex(TopoDS::Vertex(s))
{
p = occ2ng(vertex);
}
Point<3> OCCVertex::GetPoint() const
{
return p;
}
size_t OCCVertex::GetHash() const
{
return vertex.HashCode(std::numeric_limits<Standard_Integer>::max());
}
}