mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 18:44:39 +00:00
fix #975
This commit is contained in:
parent
0c949cfd51
commit
ff4332e2a9
@ -1019,6 +1019,7 @@ void FilterTexturePlugin::transferToTexture(
|
||||
CheckError(!img.save(textName, "PNG"), "Specified file cannot be saved: " + textName);
|
||||
log("Dummy Texture \"%s\" Created ", textName.toStdString().c_str());
|
||||
assert(textFile.exists());
|
||||
textFile.remove();
|
||||
}
|
||||
|
||||
//Assign texture
|
||||
|
||||
@ -267,6 +267,8 @@ public:
|
||||
startPt[1] = bary[0]*f.cV(0)->cP().Y()+bary[1]*f.cV(1)->cP().Y()+bary[2]*f.cV(2)->cP().Y();
|
||||
startPt[2] = bary[0]*f.cV(0)->cP().Z()+bary[1]*f.cV(1)->cP().Z()+bary[2]*f.cV(2)->cP().Z();
|
||||
|
||||
if (!srcMesh->bbox.IsInEx(startPt)) return;
|
||||
|
||||
// Retrieve closest point on source mesh
|
||||
|
||||
if(usePointCloudSampling)
|
||||
@ -274,7 +276,7 @@ public:
|
||||
CMeshO::VertexType *nearestV=0;
|
||||
CMeshO::ScalarType dist=dist_upper_bound;
|
||||
nearestV = vcg::tri::GetClosestVertex<CMeshO,VertexMeshGrid>(*srcMesh,unifGridVert,startPt,dist_upper_bound,dist); //(PDistFunct,markerFunctor,startPt,dist_upper_bound,dist,closestPt);
|
||||
//if(cb) cb(sampleCnt++*100/sampleNum,"Resampling Vertex attributes");
|
||||
//if(cb) cb(sampleCnt++*100/sampleNum,"Resampling Vertex attributes");
|
||||
//if(storeDistanceAsQualityFlag) p.Q() = dist;
|
||||
if(dist == dist_upper_bound) return ;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user