Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/point_cloud/point_cloud_builder.cc
| Context not available. | |||||
| std::unique_ptr<PointCloud> PointCloudBuilder::Finalize( | std::unique_ptr<PointCloud> PointCloudBuilder::Finalize( | ||||
| bool deduplicate_points) { | bool deduplicate_points) { | ||||
| #ifdef DRACO_ATTRIBUTE_DEDUPLICATION_SUPPORTED | |||||
| if (deduplicate_points) { | if (deduplicate_points) { | ||||
| #ifdef DRACO_ATTRIBUTE_VALUES_DEDUPLICATION_SUPPORTED | |||||
| point_cloud_->DeduplicateAttributeValues(); | point_cloud_->DeduplicateAttributeValues(); | ||||
| #endif | |||||
| #ifdef DRACO_ATTRIBUTE_INDICES_DEDUPLICATION_SUPPORTED | |||||
| point_cloud_->DeduplicatePointIds(); | point_cloud_->DeduplicatePointIds(); | ||||
| } | |||||
| #endif | #endif | ||||
| } | |||||
| return std::move(point_cloud_); | return std::move(point_cloud_); | ||||
| } | } | ||||
| Context not available. | |||||