Skip to content

Commit

Permalink
point to #3794 in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Oct 11, 2023
1 parent 14ee46b commit 7dd8f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions rerun_cpp/src/rerun/archetypes/boxes3d_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ namespace rerun {
///
/// TODO(#3285): Does *not* preserve data as-is and instead creates half-sizes from the
/// input data.
/// TODO(#3794): This should not take an std::vector.
static Boxes3D from_sizes(const std::vector<datatypes::Vec3D>& sizes);

/// Creates new `Boxes3D` with `centers` and `half_sizes` created from centers and (full)
/// sizes.
///
/// TODO(#3285): Does *not* preserve data as-is and instead creates centers and half-sizes
/// from the input data.
/// TODO(#3794): This should not take an std::vector.
static Boxes3D from_centers_and_sizes(
ComponentBatch<components::Position3D> centers,
const std::vector<datatypes::Vec3D>& sizes
Expand All @@ -51,6 +53,7 @@ namespace rerun {
///
/// TODO(#3285): Does *not* preserve data as-is and instead creates centers and half-sizes
/// from the input data.
/// TODO(#3794): This should not take an std::vector.
static Boxes3D from_mins_and_sizes(
const std::vector<datatypes::Vec3D>& mins, const std::vector<datatypes::Vec3D>& sizes
);
Expand Down
4 changes: 1 addition & 3 deletions rerun_cpp/src/rerun/component_batch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ namespace rerun {

/// Serializes the component batch into a rerun datacell that can be sent to a store.
Result<SerializedComponentBatch> serialize() const {
// TODO(andreas): For improved error messages we should add a static_assert that
// TComponent implements `to_data_cell`.
// TODO(andreas): Invert this relationship - a user of this *container* should call
// TODO(#3794): Invert this relationship - a user of this *container* should call
// TComponent::serialize (or similar) passing in this container.
switch (ownership) {
case BatchOwnership::Borrowed: {
Expand Down

0 comments on commit 7dd8f85

Please sign in to comment.