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

Functions

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

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()

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()

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

replace selected points with the values from V

◆ topologyFromEigen()

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

constructs mesh topology from N*3 matrix of vertex indices

◆ topologyToEigen()

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

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