warning cleanup
This commit is contained in:
parent
302e75772b
commit
7939a54f1c
|
@ -64,11 +64,11 @@ void ComputeCrossCovarianceMatrix(const std::vector<Point3<S> > &spVec, Point3<S
|
||||||
ti->ToEigenVector(tpe);
|
ti->ToEigenVector(tpe);
|
||||||
m += spe*tpe.transpose();
|
m += spe*tpe.transpose();
|
||||||
}
|
}
|
||||||
spBarycenter/=spVec.size();
|
spBarycenter /= double(spVec.size());
|
||||||
tpBarycenter/=tpVec.size();
|
tpBarycenter /= double(tpVec.size());
|
||||||
spBarycenter.ToEigenVector(spe);
|
spBarycenter.ToEigenVector(spe);
|
||||||
tpBarycenter.ToEigenVector(tpe);
|
tpBarycenter.ToEigenVector(tpe);
|
||||||
m/=spVec.size();
|
m /= double(spVec.size());
|
||||||
m -= spe*tpe.transpose();
|
m -= spe*tpe.transpose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -760,7 +760,7 @@ namespace Tags
|
||||||
class BindVertexInputTag : public XMLTag
|
class BindVertexInputTag : public XMLTag
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BindVertexInputTag(const QString& semantic,const QString& input_semantic,const QString& input_set)
|
BindVertexInputTag(const QString& semantic,const QString& input_semantic,const QString& /*input_set*/)
|
||||||
:XMLTag("bind_vertex_input")
|
:XMLTag("bind_vertex_input")
|
||||||
{
|
{
|
||||||
_attributes.push_back(TagAttribute("semantic",semantic));
|
_attributes.push_back(TagAttribute("semantic",semantic));
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ namespace vcg
|
||||||
{
|
{
|
||||||
//qDebug("Indexed drawing");
|
//qDebug("Indexed drawing");
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_bohandle);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_bohandle);
|
||||||
glDrawElements(GL_TRIANGLES, _mesh.FN() * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components, GL_UNSIGNED_INT, NULL);
|
glDrawElements(GL_TRIANGLES, GLsizei(_mesh.FN() * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components), GL_UNSIGNED_INT, NULL);
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1819,7 +1819,7 @@ namespace vcg
|
||||||
//qDebug("Indexed drawing");
|
//qDebug("Indexed drawing");
|
||||||
updateClientState(req);
|
updateClientState(req);
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_EDGEINDICES]->_bohandle);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_EDGEINDICES]->_bohandle);
|
||||||
glDrawElements(GL_LINES, _edge.size() * _bo[INT_ATT_NAMES::ATT_EDGEINDICES]->_components, GL_UNSIGNED_INT, NULL);
|
glDrawElements(GL_LINES, GLsizei(_edge.size() * _bo[INT_ATT_NAMES::ATT_EDGEINDICES]->_components), GL_UNSIGNED_INT, NULL);
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
InternalRendAtts tmp;
|
InternalRendAtts tmp;
|
||||||
updateClientState(tmp);
|
updateClientState(tmp);
|
||||||
|
@ -2235,8 +2235,8 @@ namespace vcg
|
||||||
assert(nz >= 0);
|
assert(nz >= 0);
|
||||||
assert(nz < 2);
|
assert(nz < 2);
|
||||||
|
|
||||||
_v[0] = size_t(vcg::tri::Index(m, pe->V(nz)));;
|
_v[0] = GLuint(vcg::tri::Index(m, pe->V(nz)));;
|
||||||
_v[1] = size_t(vcg::tri::Index(m, pe->V((nz + 1) % 2)));
|
_v[1] = GLuint(vcg::tri::Index(m, pe->V((nz + 1) % 2)));
|
||||||
assert(_v[0] != _v[1]); // The face pointed by 'f' is Degenerate (two coincident vertexes)
|
assert(_v[0] != _v[1]); // The face pointed by 'f' is Degenerate (two coincident vertexes)
|
||||||
|
|
||||||
if (_v[0] > _v[1])
|
if (_v[0] > _v[1])
|
||||||
|
|
|
@ -139,7 +139,7 @@ void Rubberband::Render(QGLWidget* gla)
|
||||||
assert(!glGetError());
|
assert(!glGetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rubberband::RenderLine(QGLWidget* gla, Point3f AA, Point3f BB)
|
void Rubberband::RenderLine(QGLWidget* /*gla*/, Point3f AA, Point3f BB)
|
||||||
{
|
{
|
||||||
// Drawing of the line from AA to BB
|
// Drawing of the line from AA to BB
|
||||||
glPushAttrib(GL_DEPTH_BUFFER_BIT | GL_ENABLE_BIT | GL_LINE_BIT | GL_POINT_BIT | GL_CURRENT_BIT | GL_LIGHTING_BIT | GL_COLOR_BUFFER_BIT);
|
glPushAttrib(GL_DEPTH_BUFFER_BIT | GL_ENABLE_BIT | GL_LINE_BIT | GL_POINT_BIT | GL_CURRENT_BIT | GL_LIGHTING_BIT | GL_COLOR_BUFFER_BIT);
|
||||||
|
|
|
@ -234,7 +234,7 @@ namespace io {
|
||||||
if(AddDuplexVertexCoord(ListOfDuplexVert,Key(i,t)))
|
if(AddDuplexVertexCoord(ListOfDuplexVert,Key(i,t)))
|
||||||
{
|
{
|
||||||
VectorOfVertexType.push_back((*(*fi).V(k)));
|
VectorOfVertexType.push_back((*(*fi).V(k)));
|
||||||
ListOfDuplexVert[Key(i,t)] = VectorOfVertexType.size()-1;
|
ListOfDuplexVert[Key(i,t)] = int(VectorOfVertexType.size()-1);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public:
|
||||||
elemDescVec[elemType]->push_back(PropDescriptor());
|
elemDescVec[elemType]->push_back(PropDescriptor());
|
||||||
elemNameVec[elemType]->push_back(attrName);
|
elemNameVec[elemType]->push_back(attrName);
|
||||||
elemDescVec[elemType]->back().elemname=elemStr[elemType];
|
elemDescVec[elemType]->back().elemname=elemStr[elemType];
|
||||||
elemDescVec[elemType]->back().propname=strdup(propName);
|
elemDescVec[elemType]->back().propname=_strdup(propName);
|
||||||
elemDescVec[elemType]->back().stotype1 = vcg::ply::T_FLOAT;
|
elemDescVec[elemType]->back().stotype1 = vcg::ply::T_FLOAT;
|
||||||
elemDescVec[elemType]->back().memtype1 = vcg::ply::T_FLOAT;
|
elemDescVec[elemType]->back().memtype1 = vcg::ply::T_FLOAT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue