Differential D9642 Diff 31357 extern/draco/draco/src/draco/compression/attributes/linear_sequencer.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/compression/attributes/linear_sequencer.h
- This file was moved from extern/draco/dracoenc/src/draco/compression/attributes/linear_sequencer.h.
| Show All 26 Lines | public: | ||||
| bool UpdatePointToAttributeIndexMapping(PointAttribute *attribute) override { | bool UpdatePointToAttributeIndexMapping(PointAttribute *attribute) override { | ||||
| attribute->SetIdentityMapping(); | attribute->SetIdentityMapping(); | ||||
| return true; | return true; | ||||
| } | } | ||||
| protected: | protected: | ||||
| bool GenerateSequenceInternal() override { | bool GenerateSequenceInternal() override { | ||||
| if (num_points_ < 0) | if (num_points_ < 0) { | ||||
| return false; | return false; | ||||
| } | |||||
| out_point_ids()->resize(num_points_); | out_point_ids()->resize(num_points_); | ||||
| for (int i = 0; i < num_points_; ++i) { | for (int i = 0; i < num_points_; ++i) { | ||||
| out_point_ids()->at(i) = PointIndex(i); | out_point_ids()->at(i) = PointIndex(i); | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| private: | private: | ||||
| int32_t num_points_; | int32_t num_points_; | ||||
| }; | }; | ||||
| } // namespace draco | } // namespace draco | ||||
| #endif // DRACO_COMPRESSION_ATTRIBUTES_LINEAR_SEQUENCER_H_ | #endif // DRACO_COMPRESSION_ATTRIBUTES_LINEAR_SEQUENCER_H_ | ||||