supereight2
|
Classes | |
struct | IdInfo |
Functions | |
template<typename FaceT , typename = std::enable_if_t<FaceT::id_ == Id::On>> | |
std::map< id_t, IdInfo > | mesh_id_info (const Mesh< FaceT > &mesh) |
Return information about all identifiers in mesh . | |
template<typename FaceT , typename = std::enable_if_t<FaceT::id_ == Id::On>> | |
std::map< id_t, Mesh< FaceT > > | extract_id_meshes (const Mesh< FaceT > &mesh) |
Extract per-identifier meshes for all identifiers in mesh . | |
template<typename FaceT , typename ExtractIdF , typename = std::enable_if_t<FaceT::id_ == Id::On>> | |
std::map< id_t, Mesh< FaceT > > | extract_id_meshes (const Mesh< FaceT > &mesh, ExtractIdF extract_id) |
Extract per-identifier meshes for all identifiers in mesh for whose IDs extract_id returns true. | |
template<typename FaceT , typename = std::enable_if_t<FaceT::id_ == Id::On>> | |
void | colour_mesh_by_id (Mesh< FaceT > &mesh, const bool enable_shading=true, const Eigen::Vector3f &light_dir_W=Eigen::Vector3f(-1, 0, -1), const RGB ambient=RGB{0x40, 0x40, 0x40}) |
Colour the faces of mesh by their ID. | |
Return information about all identifiers in mesh
.
The spatial information is in the same coordinate frame as mesh
.
Extract per-identifier meshes for all identifiers in mesh
.
std::map< id_t, Mesh< FaceT > > se::id::extract_id_meshes | ( | const Mesh< FaceT > & | mesh, |
ExtractIdF | extract_id | ||
) |
Extract per-identifier meshes for all identifiers in mesh
for whose IDs extract_id
returns true.
extract_id
must be a functor with the following signature: