mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
- patched the patch. UpdateTopology required after CompactFaceVector & CompactVertexVector.
This commit is contained in:
parent
db6c0f3bb6
commit
c31368de5d
@ -190,13 +190,15 @@ bool FilterImgPatchParamPlugin::applyFilter( QAction *act,
|
||||
RichParameterSet &par,
|
||||
vcg::CallBackPos * /*cb*/ )
|
||||
{
|
||||
vcg::tri::Allocator<CMeshO>::CompactFaceVector(md.mm()->cm);
|
||||
vcg::tri::Allocator<CMeshO>::CompactVertexVector(md.mm()->cm);
|
||||
if ( vcg::tri::Clean<CMeshO>::CountNonManifoldEdgeFF(md.mm()->cm)>0 )
|
||||
if (vcg::tri::Clean<CMeshO>::CountNonManifoldEdgeFF(md.mm()->cm)>0)
|
||||
{
|
||||
errorMessage = "Mesh has some not 2-manifold faces, this filter requires manifoldness"; // text
|
||||
return false; // can't continue, mesh can't be processed
|
||||
}
|
||||
vcg::tri::Allocator<CMeshO>::CompactFaceVector(md.mm()->cm);
|
||||
vcg::tri::Allocator<CMeshO>::CompactVertexVector(md.mm()->cm);
|
||||
vcg::tri::UpdateTopology<CMeshO>::FaceFace(md.mm()->cm);
|
||||
vcg::tri::UpdateTopology<CMeshO>::VertexFace(md.mm()->cm);
|
||||
glContext->makeCurrent();
|
||||
if( glewInit() != GLEW_OK )
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user