Mesh load/save flags.
More...
#include <geogram/mesh/mesh_io.h>
Mesh load/save flags.
Represents the optional attributes of a Mesh that can be loaded and stored in a file.
Definition at line 83 of file mesh_io.h.
◆ attributes()
Gets the attributes that should be loaded or saved.
- Returns
- a set of MeshAttributesFlags combined with bitwise or
Definition at line 113 of file mesh_io.h.
◆ dimension()
Gets the dimension of the mesh (number of coordinates of the vertices).
- Returns
- the dimension of the mesh (i.e. number of coordinates of the verfices).
Definition at line 96 of file mesh_io.h.
◆ elements()
MeshElementsFlags GEO::MeshIOFlags::elements |
( |
| ) |
const |
|
inline |
Gets the set of mesh elements that should be loaded or stored.
- Returns
- a set of MeshElements combined with bitwise or
Definition at line 159 of file mesh_io.h.
◆ get_texture_filename()
const std::string& GEO::MeshIOFlags::get_texture_filename |
( |
| ) |
const |
|
inline |
◆ has_attribute()
Tests whether a mesh attribute is set.
If set, this means that the mesh attribute x
will be loaded or stored.
- Parameters
-
[in] | x | the attribute to test |
- Return values
-
true | if attribute x is se |
false | otherwise |
Definition at line 151 of file mesh_io.h.
◆ has_element()
bool GEO::MeshIOFlags::has_element |
( |
MeshElementsFlags |
x | ) |
const |
|
inline |
Tests whether a mesh element is set.
If set, this means that the mesh elements x
will be loaded or stored.
- Parameters
-
- Return values
-
true | if element x is set |
false | otherwise |
Definition at line 199 of file mesh_io.h.
◆ reset_attribute()
Resets a mesh attribute..
Indicates that x
should not be loaded nor stored.
- Parameters
-
[in] | x | the attribute that should be reset |
Definition at line 139 of file mesh_io.h.
◆ reset_element()
void GEO::MeshIOFlags::reset_element |
( |
MeshElementsFlags |
x | ) |
|
|
inline |
Resets a mesh element.
Indicates that mesh elements x
should not be loaded nor stored.
- Parameters
-
[in] | x | the element to reset |
Definition at line 187 of file mesh_io.h.
◆ set_attribute()
Sets a mesh attribute.
Indicates that x
should be loaded or stored.
- Parameters
-
[in] | x | the attribute that should be set |
Definition at line 130 of file mesh_io.h.
◆ set_attributes()
Sets the attributes that should be loaded or stored.
- Parameters
-
[in] | x | a set of MeshAttributes combined with bitwise or |
Definition at line 121 of file mesh_io.h.
◆ set_dimension()
Sets the dimension of the mesh (number of coordinates of the vertices).
- Parameters
-
[in] | x | the dimension of the mesh |
Definition at line 105 of file mesh_io.h.
◆ set_element()
void GEO::MeshIOFlags::set_element |
( |
MeshElementsFlags |
x | ) |
|
|
inline |
Sets a mesh element.
Indicates that mesh elements x
should be loaded or stored.
- Parameters
-
Definition at line 177 of file mesh_io.h.
◆ set_elements()
void GEO::MeshIOFlags::set_elements |
( |
MeshElementsFlags |
x | ) |
|
|
inline |
Sets the set of mesh elements that should be loaded or stored.
- Parameters
-
[in] | x | a set of MeshElementsFlags combined with bitwise or |
Definition at line 167 of file mesh_io.h.
◆ set_texture_filename()
void GEO::MeshIOFlags::set_texture_filename |
( |
const std::string & |
x | ) |
|
|
inline |
Sets the name of the texture image file associated with this mesh.
Used by the OBJ file format. If present generates a material lib.
- Parameters
-
[in] | x | the name of the file with the texture. |
Definition at line 210 of file mesh_io.h.
◆ set_verbose()
void GEO::MeshIOFlags::set_verbose |
( |
bool |
x | ) |
|
|
inline |
Sets verbosity.
Error messages are always displayed, whatever the verbosity level.
- Parameters
-
[in] | x | true if messages should be displayed, false otherwise. Default is true. |
Definition at line 230 of file mesh_io.h.
◆ verbose()
bool GEO::MeshIOFlags::verbose |
( |
| ) |
const |
|
inline |
Tests whether messages should be displayed.
Error messages are always displayed, whatever the verbosity level.
- Return values
-
true | if messages are displayed |
false | otherwise |
- See also
- set_verbose()
Definition at line 242 of file mesh_io.h.
The documentation for this class was generated from the following file: