add binary for handles and add string recognition support for meshhandle
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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";}
|
||||
|
||||
Reference in New Issue
Block a user