39 #ifndef H_OGF_MESH_COMMANDS_MESH_GROB_ATTRIBUTES_COMMANDS_H
40 #define H_OGF_MESH_COMMANDS_MESH_GROB_ATTRIBUTES_COMMANDS_H
79 gom_arg_attribute(where, handler,
"combo_box")
80 gom_arg_attribute(where, values, "vertices;edges;facets;cells")
81 gom_arg_attribute(type, handler, "combo_box")
83 void create_attribute(
84 const std::
string& name,
85 const std::
string& where = "points",
86 const std::
string& type = "
float64",
95 gom_arg_attribute(name, handler, "combo_box")
96 gom_arg_attribute(name, values, "$grob.attributes")
97 void delete_attribute(const std::
string& name);
105 void compute_vertices_id(const std::
string& attribute="
id");
112 void compute_edges_id(const std::
string& attribute="
id");
119 void compute_facets_id(const std::
string& attribute="
id");
126 void compute_chart_id(const std::
string& attribute="chart");
133 void compute_cells_id(const std::
string& attribute="
id");
141 void compute_distance_to_surface(
143 const std::
string& attribute="
distance"
153 void compute_local_feature_size(
155 const std::
string& attribute="lfs"
165 void copy_texture_colors(
168 bool copy_tex_coords=false
181 void compute_ambient_occlusion(
182 const std::
string& attribute="AO",
183 index_t nb_rays_per_vertex = 100,
184 index_t nb_smoothing_iterations = 2
192 void compute_vertices_normals(
193 const std::
string& attribute = "normal"
200 void compute_sub_elements_id(
201 MeshElementsFlags what, const std::
string& attribute
Commands that manipulate mesh attributes.
MeshGrobAttributesCommands()
MeshGrobAttributesCommands constructor.
~MeshGrobAttributesCommands() override
MeshGrobAttributesCommands destructor.
Base class for Commands related with a MeshGrob object.
A template class for strings that need to have a specific type in the GOM system.
Base class for Commands related with a MeshGrob object.
double distance(const COORD_T *p1, const COORD_T *p2, coord_index_t dim)
Computes the distance between two nd points.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
Definitions common to all include files in the mesh library.