mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Merge branch 'master' of https://github.com/cnr-isti-vclab/meshlab
This commit is contained in:
commit
3b4d7aceab
@ -776,6 +776,8 @@ switch(ID(action))
|
||||
mm->updateDataMask(curMM);
|
||||
BaseSampler mps(&(mm->cm));
|
||||
|
||||
mps.perFaceNormal = par.getBool("PerFaceNormal");
|
||||
|
||||
if(par.getBool("EdgeSampling"))
|
||||
{
|
||||
tri::SurfaceSampling<CMeshO,BaseSampler>::EdgeMontecarlo(curMM->cm,mps,par.getInt("SampleNum"),false);
|
||||
@ -1237,7 +1239,7 @@ switch(ID(action))
|
||||
|
||||
Point3i volumeDim;
|
||||
Box3m volumeBox = baseMesh->cm.bbox;
|
||||
volumeBox.Offset(volumeBox.Diag()/10.0f+offsetThr);
|
||||
volumeBox.Offset(volumeBox.Diag()/10.0f+abs(offsetThr));
|
||||
BestDim(volumeBox , voxelSize, volumeDim );
|
||||
|
||||
Log("Resampling mesh using a volume of %i x %i x %i",volumeDim[0],volumeDim[1],volumeDim[2]);
|
||||
|
||||
@ -1045,7 +1045,7 @@ bool FilterTexturePlugin::applyFilter(QAction *filter, MeshDocument &md, RichPar
|
||||
assert(srcMesh!=NULL);
|
||||
assert(trgMesh!=NULL);
|
||||
|
||||
CheckError(trgMesh->cm.fn == 0, "Source mesh requires to have faces");
|
||||
CheckError(srcMesh->cm.fn == 0, "Source mesh requires to have faces");
|
||||
|
||||
// Check whether is possible to access source mesh texture
|
||||
CheckError(!srcMesh->hasDataMask(MeshModel::MM_WEDGTEXCOORD), "Source mesh doesn't have Per Wedge Texture Coordinates");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user