6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/albedo_factor.hpp"
10#include "../components/class_id.hpp"
11#include "../components/color.hpp"
12#include "../components/image_buffer.hpp"
13#include "../components/image_format.hpp"
14#include "../components/position3d.hpp"
15#include "../components/texcoord2d.hpp"
16#include "../components/triangle_indices.hpp"
17#include "../components/vector3d.hpp"
18#include "../indicator_component.hpp"
19#include "../result.hpp"
145 std::optional<Collection<rerun::components::ClassId>>
class_ids;
148 static constexpr const char IndicatorComponentName[] =
"rerun.components.Mesh3DIndicator";
166 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
173 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
180 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
188 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
195 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
208 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
216 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
225 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
233 template <
typename T>
238 struct AsComponents<archetypes::Mesh3D> {
240 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Mesh3D& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: A 3D triangle mesh as specified by its per-mesh and per-vertex properties.
Definition mesh3d.hpp:110
Mesh3D with_albedo_texture_format(rerun::components::ImageFormat _albedo_texture_format) &&
The format of the albedo_texture_buffer, if any.
Definition mesh3d.hpp:212
std::optional< Collection< rerun::components::Texcoord2D > > vertex_texcoords
An optional uv texture coordinate for each vertex.
Definition mesh3d.hpp:126
Collection< rerun::components::Position3D > vertex_positions
The positions of each vertex.
Definition mesh3d.hpp:114
Mesh3D with_albedo_factor(rerun::components::AlbedoFactor _albedo_factor) &&
A color multiplier applied to the whole mesh.
Definition mesh3d.hpp:192
std::optional< Collection< rerun::components::ClassId > > class_ids
Optional class Ids for the vertices.
Definition mesh3d.hpp:145
Mesh3D with_vertex_colors(Collection< rerun::components::Color > _vertex_colors) &&
An optional color for each vertex.
Definition mesh3d.hpp:177
std::optional< rerun::components::ImageBuffer > albedo_texture_buffer
Optional albedo texture.
Definition mesh3d.hpp:137
std::optional< Collection< rerun::components::TriangleIndices > > triangle_indices
Optional indices for the triangles that make up the mesh.
Definition mesh3d.hpp:117
Mesh3D with_class_ids(Collection< rerun::components::ClassId > _class_ids) &&
Optional class Ids for the vertices.
Definition mesh3d.hpp:222
std::optional< Collection< rerun::components::Color > > vertex_colors
An optional color for each vertex.
Definition mesh3d.hpp:123
Mesh3D with_triangle_indices(Collection< rerun::components::TriangleIndices > _triangle_indices) &&
Optional indices for the triangles that make up the mesh.
Definition mesh3d.hpp:161
std::optional< rerun::components::AlbedoFactor > albedo_factor
A color multiplier applied to the whole mesh.
Definition mesh3d.hpp:129
std::optional< rerun::components::ImageFormat > albedo_texture_format
The format of the albedo_texture_buffer, if any.
Definition mesh3d.hpp:140
Mesh3D with_albedo_texture_buffer(rerun::components::ImageBuffer _albedo_texture_buffer) &&
Optional albedo texture.
Definition mesh3d.hpp:204
Mesh3D with_vertex_texcoords(Collection< rerun::components::Texcoord2D > _vertex_texcoords) &&
An optional uv texture coordinate for each vertex.
Definition mesh3d.hpp:184
std::optional< Collection< rerun::components::Vector3D > > vertex_normals
An optional normal for each vertex.
Definition mesh3d.hpp:120
Mesh3D with_vertex_normals(Collection< rerun::components::Vector3D > _vertex_normals) &&
An optional normal for each vertex.
Definition mesh3d.hpp:170
Component: A color multiplier, usually applied to a whole entity, e.g. a mesh.
Definition albedo_factor.hpp:15
Component: A buffer that is known to store image data.
Definition image_buffer.hpp:19
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32