MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshEigen.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRPch/MRBindingMacros.h"
5#include <MRPch/MREigenCore.h>
6
7namespace MR
8{
9
13
15MR_BIND_IGNORE MRMESH_API MeshTopology topologyFromEigen( const Eigen::MatrixXi & F );
16
18MR_BIND_IGNORE MRMESH_API Mesh meshFromEigen( const Eigen::MatrixXd & V, const Eigen::MatrixXi & F );
19
21MR_BIND_IGNORE MRMESH_API void pointsFromEigen( const Eigen::MatrixXd & V, const VertBitSet & selection, VertCoords & points );
22
24MR_BIND_IGNORE MRMESH_API void topologyToEigen( const MeshTopology & topology, Eigen::MatrixXi & F );
25
27MR_BIND_IGNORE MRMESH_API void meshToEigen( const Mesh & mesh, Eigen::MatrixXd & V, Eigen::MatrixXi & F );
28
30
31} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRMesh/MRMeshTopology.h:18
MR_BIND_IGNORE MRMESH_API Mesh meshFromEigen(const Eigen::MatrixXd &V, const Eigen::MatrixXi &F)
constructs mesh from M*3 matrix of coordinates and N*3 matrix of vertex indices
MR_BIND_IGNORE MRMESH_API void pointsFromEigen(const Eigen::MatrixXd &V, const VertBitSet &selection, VertCoords &points)
replace selected points with the values from V
MR_BIND_IGNORE MRMESH_API void meshToEigen(const Mesh &mesh, Eigen::MatrixXd &V, Eigen::MatrixXi &F)
converts mesh into M*3 matrix of coordinates and N*3 matrix of vertex indices
MR_BIND_IGNORE MRMESH_API void topologyToEigen(const MeshTopology &topology, Eigen::MatrixXi &F)
converts valid faces from mesh topology into N*3 matrix of vertex indices
MR_BIND_IGNORE MRMESH_API MeshTopology topologyFromEigen(const Eigen::MatrixXi &F)
constructs mesh topology from N*3 matrix of vertex indices
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh/MRMesh.h:23