Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc
| Context not available. | |||||
| } | } | ||||
| std::unique_ptr<Mesh> TriangleSoupMeshBuilder::Finalize() { | std::unique_ptr<Mesh> TriangleSoupMeshBuilder::Finalize() { | ||||
| #ifdef DRACO_ATTRIBUTE_DEDUPLICATION_SUPPORTED | #ifdef DRACO_ATTRIBUTE_VALUES_DEDUPLICATION_SUPPORTED | ||||
| // First deduplicate attribute values. | // First deduplicate attribute values. | ||||
| if (!mesh_->DeduplicateAttributeValues()) | if (!mesh_->DeduplicateAttributeValues()) | ||||
| return nullptr; | return nullptr; | ||||
| #endif | |||||
| #ifdef DRACO_ATTRIBUTE_INDICES_DEDUPLICATION_SUPPORTED | |||||
| // Also deduplicate vertex indices. | // Also deduplicate vertex indices. | ||||
| mesh_->DeduplicatePointIds(); | mesh_->DeduplicatePointIds(); | ||||
| #endif | #endif | ||||
| Context not available. | |||||