27 auto projectionResult = findProjection( newMesh.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 );
42 auto projectionResult = findProjection( newMesh.triCenter( newFaceId ), oldMesh );
43 func( newFaceId, projectionResult );
int VertId
Definition MRDotNet/MRMeshFwd.h:51
int FaceId
Definition MRDotNet/MRMeshFwd.h:53
const VertBitSet & getValidVerts() const
returns cached set of all valid vertices
Definition MRMesh/MRMeshTopology.h:190
const FaceBitSet & getValidFaces() const
returns cached set of all valid faces
Definition MRMesh/MRMeshTopology.h:256
represents a mesh, including topology (connectivity) information and point coordinates,
Definition MRDotNet/MRMesh.h:30
auto BitSetParallelFor(const BS &bs, F &&f, Cb &&... cb)
Definition MRBitSetParallelFor.h:189
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:571
Definition MRCameraOrientationPlugin.h:8
bool projectFaceAttribute(const Mesh &newMesh, const Mesh &oldMesh, F &&func, ProgressCallback progressCb)
Definition MRProjectionMeshAttribute.h:38
bool projectVertAttribute(const Mesh &newMesh, const Mesh &oldMesh, F &&func, ProgressCallback progressCb)
Definition MRProjectionMeshAttribute.h:23
Definition MRMesh/MRMesh.h:23
MeshTopology topology
Definition MRMesh/MRMesh.h:24