mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
fix misleading indentation warnings
This commit is contained in:
parent
f3568e75c9
commit
54dfee3b14
@ -58,7 +58,7 @@ public:
|
||||
void Logf(int Level, const char * f, Ts&&... ts )
|
||||
{
|
||||
char buf[buf_size];
|
||||
int chars_written = snprintf(buf, buf_size, f, std::forward<Ts>(ts)...);
|
||||
int chars_written = snprintf(buf, buf_size, f, std::forward<Ts>(ts)...);
|
||||
Log(Level, buf);
|
||||
|
||||
if(chars_written >= static_cast<int>(buf_size)){
|
||||
|
||||
@ -714,12 +714,14 @@ void DecorateBasePlugin::DrawFaceLabel(MeshModel &m, QPainter *painter)
|
||||
glDisable(GL_LIGHTING);
|
||||
glColor3f(.4f,.4f,.4f);
|
||||
for(size_t i=0;i<m.cm.face.size();++i)
|
||||
{
|
||||
if(!m.cm.face[i].IsD())
|
||||
{
|
||||
Point3m bar=Barycenter(m.cm.face[i]);
|
||||
glLabel::render(painter, bar,tr("%1").arg(i),glLabel::Mode(textColor));
|
||||
}
|
||||
glPopAttrib();
|
||||
}
|
||||
glPopAttrib();
|
||||
}
|
||||
|
||||
void DecorateBasePlugin::DrawEdgeLabel(MeshModel &m,QPainter *painter)
|
||||
@ -729,12 +731,14 @@ void DecorateBasePlugin::DrawEdgeLabel(MeshModel &m,QPainter *painter)
|
||||
glDisable(GL_LIGHTING);
|
||||
glColor3f(.4f,.4f,.4f);
|
||||
for(size_t i=0;i<m.cm.edge.size();++i)
|
||||
{
|
||||
if(!m.cm.edge[i].IsD())
|
||||
{
|
||||
Point3m bar=(m.cm.edge[i].V(0)->P()+m.cm.edge[i].V(0)->P())/2.0f;
|
||||
glLabel::render(painter, bar,tr("%1").arg(i),glLabel::Mode(textColor));
|
||||
}
|
||||
glPopAttrib();
|
||||
}
|
||||
glPopAttrib();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user