25 return BitSetParallelFor( mp.mesh.topology.getVertIds( mp.region ), [&] ( VertId
id )
27 auto projectionResult = findProjection( mp.mesh.points[id], oldMesh );
28 auto res = projectionResult.mtp;
29 VertId v1 = oldMesh.topology.org( res.e );
30 VertId v2 = oldMesh.topology.dest( res.e );
31 VertId v3 = oldMesh.topology.dest( oldMesh.topology.next( res.e ) );
32 func( id, projectionResult, v1, v2, v3 );
40 return BitSetParallelFor( mp.mesh.topology.getFaceIds( mp.region ), [&] ( FaceId newFaceId )
42 auto projectionResult = findProjection( mp.mesh.triCenter( newFaceId ), oldMesh );
43 func( newFaceId, projectionResult );
auto BitSetParallelFor(const BS &bs, F &&f, Cb &&... cb)
Definition MRBitSetParallelFor.h:189
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
struct MRMESH_CLASS Mesh
Definition MRMesh/MRMeshFwd.h:475
bool projectFaceAttribute(const MeshPart &mp, const Mesh &oldMesh, F &&func, ProgressCallback progressCb)
Definition MRProjectionMeshAttribute.h:38
bool projectVertAttribute(const MeshVertPart &mp, const Mesh &oldMesh, F &&func, ProgressCallback progressCb)
Definition MRProjectionMeshAttribute.h:23
Definition MRMesh/MRMesh.h:23