add binary for handles and add string recognition support for meshhandle

This commit is contained in:
Alexandra Heuschling
2021-01-06 23:30:31 +01:00
parent 443fcd78a0
commit bdd10562d2
3 changed files with 13 additions and 6 deletions

View File

@@ -62,10 +62,11 @@ bool PropertyCreator::can_you_create(const std::string& _type_name)
} /* namespace OpenMesh */
//OM_REGISTER_PROPERTY_TYPE(OpenMesh::FaceHandle)
//OM_REGISTER_PROPERTY_TYPE(OpenMesh::EdgeHandle)
//OM_REGISTER_PROPERTY_TYPE(OpenMesh::HalfedgeHandle)
//OM_REGISTER_PROPERTY_TYPE(OpenMesh::VertexHandle)
OM_REGISTER_PROPERTY_TYPE(OpenMesh::FaceHandle)
OM_REGISTER_PROPERTY_TYPE(OpenMesh::EdgeHandle)
OM_REGISTER_PROPERTY_TYPE(OpenMesh::HalfedgeHandle)
OM_REGISTER_PROPERTY_TYPE(OpenMesh::VertexHandle)
OM_REGISTER_PROPERTY_TYPE(OpenMesh::MeshHandle)
OM_REGISTER_PROPERTY_TYPE(bool)
OM_REGISTER_PROPERTY_TYPE(char)

View File

@@ -30,9 +30,9 @@ std::string get_type_name()
inline std::string get_string_for_type(OpenMesh::FaceHandle){ return "facehandle";}
inline std::string get_string_for_type(OpenMesh::EdgeHandle){ return "edgehandle";}
inline std::string get_string_for_type(OpenMesh::HalfedgeHandle){ return "halfedgehandle";}
inline std::string get_string_for_type(OpenMesh::VertexHandle){ return "vertexhandle";}
inline std::string get_string_for_type(OpenMesh::MeshHandle){ return "meshhandle";}
inline std::string get_string_for_type(bool){ return "bool";}
inline std::string get_string_for_type(char){ return "char";}