solved minor warnings
This commit is contained in:
parent
1356db0573
commit
85ae69d3ba
|
@ -79,7 +79,7 @@ typename CoordType::ScalarType Area(const std::vector<CoordType> &Pos)
|
||||||
{
|
{
|
||||||
typedef typename CoordType::ScalarType ScalarType;
|
typedef typename CoordType::ScalarType ScalarType;
|
||||||
CoordType bary=CoordType(0,0,0);
|
CoordType bary=CoordType(0,0,0);
|
||||||
for (int i=0;i<Pos.size();i++)
|
for (size_t i=0;i<Pos.size();i++)
|
||||||
bary+=Pos[i];
|
bary+=Pos[i];
|
||||||
|
|
||||||
bary/=Pos.size();
|
bary/=Pos.size();
|
||||||
|
@ -127,7 +127,7 @@ typename PolygonType::ScalarType PolyArea(const PolygonType &F)
|
||||||
|
|
||||||
CoordType bary=PolyBarycenter(F);
|
CoordType bary=PolyBarycenter(F);
|
||||||
ScalarType Area=0;
|
ScalarType Area=0;
|
||||||
for (size_t i=0;i<F.VN();i++)
|
for (size_t i=0;i<(size_t)F.VN();i++)
|
||||||
{
|
{
|
||||||
CoordType p0=F.cP0(i);
|
CoordType p0=F.cP0(i);
|
||||||
CoordType p1=F.cP1(i);
|
CoordType p1=F.cP1(i);
|
||||||
|
|
Loading…
Reference in New Issue