|
Wildmeshing Toolkit
|
#include <EmbedSurface.hpp>
Public Member Functions | |
| EmbedSurface (const std::vector< std::string > &img_filenames, const std::vector< Matrix4d > &img_transform={}, const double tol_rel=-1, const double tol_abs=-1) | |
| Input from meshes. | |
| void | simplify_surface (const double eps, const int num_threads=0) |
| Simplify the input surface while staying within the eps envelope. | |
| void | remove_duplicates (const double eps) |
| Merge vertices that are closer than eps. | |
| bool | embed_surface (const bool flood_fill=false) |
| void | consolidate () |
| Remove unreferenced vertices. | |
| const MatrixXd & | V_emb () const |
| const MatrixXr & | V_emb_r () const |
| const MatrixXd & | V_surface () const |
| const MatrixXi & | T_emb () const |
| const MatrixSi & | T_tags () const |
| const MatrixXi & | F_on_surface () const |
| const MatrixXi & | F_surface () const |
| void | write_surf_off (const std::string &filename) const |
| Write surface as read from image. | |
| void | write_emb_surf_off (const std::string &filename) const |
| Write embedded surface. | |
| void | write_emb_msh (const std::string &filename) const |
| void | write_emb_vtu (const std::string &filename) const |
| std::pair< Vector3d, Vector3d > | bbox_minmax () const |
| std::pair< Vector3d, Vector3d > | bbox_surf_minmax () const |
| std::vector< Eigen::Vector3d > | V_surf_to_vector () const |
| std::vector< std::array< size_t, 3 > > | F_surf_to_vector () const |
Public Attributes | |
| bool | m_smooth_surface = false |
A class for reading an image and converting it into a tet mesh.
| bool wmtk::components::image_simulation::EmbedSurface::embed_surface | ( | const bool | flood_fill = false | ) |
Cluster tags by flood-filling regions that are bounded by the surface. All tags within one region are unified by taking the tag with most occurances.
This is for several reasons not the best way to do this.
| void wmtk::components::image_simulation::EmbedSurface::simplify_surface | ( | const double | eps, |
| const int | num_threads = 0 |
||
| ) |
Simplify the input surface while staying within the eps envelope.
| eps | The absolute envelope thickness. |
| void wmtk::components::image_simulation::EmbedSurface::write_emb_surf_off | ( | const std::string & | filename | ) | const |
Write embedded surface.
This writes all the vertices that exist in the volume and all triangles that are representing the embedded surface.
| void wmtk::components::image_simulation::EmbedSurface::write_surf_off | ( | const std::string & | filename | ) | const |
Write surface as read from image.
The surface is all the contours in the image, i.e., the surface in between voxels with different value.