mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
26 lines
429 B
C++
26 lines
429 B
C++
|
#include <BRepGProp.hxx>
|
||
|
#include <BRep_Tool.hxx>
|
||
|
|
||
|
#include "occ_vertex.hpp"
|
||
|
|
||
|
namespace netgen
|
||
|
{
|
||
|
|
||
|
OCCVertex::OCCVertex( TopoDS_Shape s )
|
||
|
: vertex(TopoDS::Vertex(s)),
|
||
|
tvertex(s.TShape())
|
||
|
{
|
||
|
p = occ2ng(vertex);
|
||
|
}
|
||
|
|
||
|
Point<3> OCCVertex::GetPoint() const
|
||
|
{
|
||
|
return p;
|
||
|
}
|
||
|
|
||
|
size_t OCCVertex::GetHash() const
|
||
|
{
|
||
|
return reinterpret_cast<size_t>(tvertex.get());
|
||
|
}
|
||
|
}
|