39 #ifndef H_OGF_MESH_COMMANDS_MESH_GROB_COMMANDS_H
40 #define H_OGF_MESH_COMMANDS_MESH_GROB_COMMANDS_H
55 gom_attribute(
abstract,
"true")
75 return dynamic_cast<MeshGrob*
>(grob());
92 const std::string& attribute_name,
MeshGrob* M =
nullptr
99 virtual void show_charts(
const std::string& attribute=
"chart");
118 set_vertices_visibility(
true);
125 set_vertices_visibility(
false);
136 const std::string& UV_attribute_name =
"facet_corners.tex_coord",
146 const std::string& attribute =
"vertices.colors",
Represents a set of commands.
Base class for Commands related with a MeshGrob object.
virtual void hide_attribute()
Hides an attribute shown by show_attribute().
virtual void show_charts(const std::string &attribute="chart")
Shows the charts, stored in the "chart" facet attribute.
void show_vertices()
Shows the vertices in the current shader.
~MeshGrobCommands() override
MeshGrobCommands destructor.
virtual void show_attribute(const std::string &attribute_name, MeshGrob *M=nullptr)
Shows an attribute.
virtual void show_colors(const std::string &attribute="vertices.colors", MeshGrob *M=nullptr)
Shows the colors of a mesh.
MeshGrobCommands()
MeshGrobCommands constructor.
virtual void set_vertices_visibility(bool visible)
Shows or hides the vertices in the current shader.
void hide_vertices()
Hides the vertices in the current shader.
MeshGrob * mesh_grob() const
Gets the MeshGrob.
virtual void show_mesh(MeshGrob *M=nullptr)
Shows the mesh.
virtual void show_UV(const std::string &UV_attribute_name="facet_corners.tex_coord", MeshGrob *M=nullptr)
Shows the parameterization of a mesh.
A Grob wrapper around Geogram's Mesh class.
class that gathers commands with menu and dialogs.
Global Graphite namespace.
Definitions common to all include files in the mesh library.