Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
openmesh-python
Commits
5a00eeab
Commit
5a00eeab
authored
Jan 22, 2018
by
Alexander Dielen
Browse files
added nested types
parent
2a38dbc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Mesh.hh
View file @
5a00eeab
...
@@ -935,33 +935,12 @@ void expose_mesh(py::module& m, const char *_name) {
...
@@ -935,33 +935,12 @@ void expose_mesh(py::module& m, const char *_name) {
// Nested Types
// Nested Types
//======================================================================
//======================================================================
// // Enter mesh scope
class_mesh
.
attr
(
"Point"
)
=
m
.
attr
(
"Vec3d"
);
// py::scope scope_mesh = class_mesh;
class_mesh
.
attr
(
"Normal"
)
=
m
.
attr
(
"Vec3d"
);
class_mesh
.
attr
(
"Color"
)
=
m
.
attr
(
"Vec4f"
);
// // Point
class_mesh
.
attr
(
"TexCoord2D"
)
=
m
.
attr
(
"Vec2f"
);
// const boost::python::type_info point_info = type_id<typename Mesh::Point>();
class_mesh
.
attr
(
"TexCoord3D"
)
=
m
.
attr
(
"Vec3f"
);
// const converter::registration * point_registration = converter::registry::query(point_info);
// scope_mesh.attr("Point") = handle<>(point_registration->m_class_object);
// // Normal
// const boost::python::type_info normal_info = type_id<typename Mesh::Normal>();
// const converter::registration * normal_registration = converter::registry::query(normal_info);
// scope_mesh.attr("Normal") = handle<>(normal_registration->m_class_object);
// // Color
// const boost::python::type_info color_info = type_id<typename Mesh::Color>();
// const converter::registration * color_registration = converter::registry::query(color_info);
// scope_mesh.attr("Color") = handle<>(color_registration->m_class_object);
// // TexCoord2D
// const boost::python::type_info texcoord2d_info = type_id<typename Mesh::TexCoord2D>();
// const converter::registration * texcoord2d_registration = converter::registry::query(texcoord2d_info);
// scope_mesh.attr("TexCoord2D") = handle<>(texcoord2d_registration->m_class_object);
// // TexCoord3D
// const boost::python::type_info texcoord3d_info = type_id<typename Mesh::TexCoord3D>();
// const converter::registration * texcoord3d_registration = converter::registry::query(texcoord3d_info);
// scope_mesh.attr("TexCoord3D") = handle<>(texcoord3d_registration->m_class_object);
}
}
#endif
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment