Class Mesh¶
Defined in File point_viz.h
Class Documentation¶
-
class Mesh¶
Manages the state of a single mesh.
Public Functions
-
Mesh(std::vector<Vertex3f> &&vertices, std::vector<unsigned int> &&indices, std::vector<unsigned int> &&edge_indices)¶
Initialize a Mesh from a vector of vertices, face indices, and edge indices.
- Parameters:
vertices[in] the mesh vertices
indices[in] the mesh face indices
edge_indices[in] the mesh edge indices
-
Mesh(const std::vector<Vertex3f> &vertices, const std::vector<unsigned int> &face_indices, const std::vector<unsigned int> &edge_indices, vec4f face_rgba, vec4f edge_rgba)¶
Initialize a Mesh from a vector of vertices, face indices, edge indices, face colors, and edge colors.
TODO[tws] consider replacing colors with a material instance.
- Parameters:
vertices[in] the mesh vertices
face_indices[in] the mesh face indices
edge_indices[in] the mesh edge indices
face_rgba[in] the mesh face color in RGBA format
edge_rgba[in] the mesh edge color in RGBA format
-
void clear()¶
Clear dirty flags.
Resets any changes since the last call to PointViz::update()
-
void dirty()¶
Set all dirty flags.
Re-sets everything so the object is always redrawn.
-
void update_from(const Mesh &other)¶
Updates this mesh’s state with the state of other.
- Parameters:
other[in] the object to update the state from.
-
void set_transform(const mat4d &pose)¶
Set the transform of the mesh.
- Parameters:
pose[in]
Public Static Functions
-
static Mesh from_simple_mesh(const ouster::sdk::core::Mesh &mesh)¶
Initialize a ouster::sdk::viz::Mesh from a ouster::sdk::core::Mesh.
- Parameters:
mesh[in] the ouster::sdk::core::Mesh
- Returns:
a new ouster::sdk::viz::Mesh
Friends
- friend class impl::GLMesh
-
Mesh(std::vector<Vertex3f> &&vertices, std::vector<unsigned int> &&indices, std::vector<unsigned int> &&edge_indices)¶