MeshLib Documentation
Loading...
Searching...
No Matches
Mesh Eigen

Functions

MR_BIND_IGNORE MRMESH_API MeshTopology MR::topologyFromEigen (const Eigen::MatrixXi &F)
 constructs mesh topology from N*3 matrix of vertex indices
 
MR_BIND_IGNORE MRMESH_API Mesh MR::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 MR::pointsFromEigen (const Eigen::MatrixXd &V, const VertBitSet &selection, VertCoords &points)
 replace selected points with the values from V
 
MR_BIND_IGNORE MRMESH_API void MR::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 void MR::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
 

Detailed Description

Function Documentation

◆ meshFromEigen()

MR_BIND_IGNORE MRMESH_API Mesh MR::meshFromEigen ( const Eigen::MatrixXd & V,
const Eigen::MatrixXi & F )

constructs mesh from M*3 matrix of coordinates and N*3 matrix of vertex indices

◆ meshToEigen()

MR_BIND_IGNORE MRMESH_API void MR::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

◆ pointsFromEigen()

MR_BIND_IGNORE MRMESH_API void MR::pointsFromEigen ( const Eigen::MatrixXd & V,
const VertBitSet & selection,
VertCoords & points )

replace selected points with the values from V

◆ topologyFromEigen()

MR_BIND_IGNORE MRMESH_API MeshTopology MR::topologyFromEigen ( const Eigen::MatrixXi & F)

constructs mesh topology from N*3 matrix of vertex indices

◆ topologyToEigen()

MR_BIND_IGNORE MRMESH_API void MR::topologyToEigen ( const MeshTopology & topology,
Eigen::MatrixXi & F )

converts valid faces from mesh topology into N*3 matrix of vertex indices