size_t fix in arrykernel
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@867 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -97,7 +97,7 @@ void ArrayKernel::assign_connectivity(const ArrayKernel& _other)
|
|||||||
// --- handle -> item ---
|
// --- handle -> item ---
|
||||||
VertexHandle ArrayKernel::handle(const Vertex& _v) const
|
VertexHandle ArrayKernel::handle(const Vertex& _v) const
|
||||||
{
|
{
|
||||||
return VertexHandle(&_v - &vertices_.front());
|
return VertexHandle( int( &_v - &vertices_.front()));
|
||||||
}
|
}
|
||||||
|
|
||||||
HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const
|
HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const
|
||||||
@@ -115,12 +115,12 @@ HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const
|
|||||||
|
|
||||||
EdgeHandle ArrayKernel::handle(const Edge& _e) const
|
EdgeHandle ArrayKernel::handle(const Edge& _e) const
|
||||||
{
|
{
|
||||||
return EdgeHandle(&_e - &edges_.front());
|
return EdgeHandle( int(&_e - &edges_.front() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
FaceHandle ArrayKernel::handle(const Face& _f) const
|
FaceHandle ArrayKernel::handle(const Face& _f) const
|
||||||
{
|
{
|
||||||
return FaceHandle(&_f - &faces_.front());
|
return FaceHandle( int(&_f - &faces_.front()) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SIGNED(x) signed( (x) )
|
#define SIGNED(x) signed( (x) )
|
||||||
|
|||||||
Reference in New Issue
Block a user