| 548 | } |
| 549 | |
| 550 | void ModelViewerWidget::ClearReconstruction() { |
| 551 | cameras.clear(); |
| 552 | images.clear(); |
| 553 | points3D.clear(); |
| 554 | reg_image_ids.clear(); |
| 555 | reconstruction = nullptr; |
| 556 | point_cloud.reset(); |
| 557 | surface_mesh.reset(); |
| 558 | surface_texture_data.clear(); |
| 559 | surface_texture_width = 0; |
| 560 | surface_texture_height = 0; |
| 561 | selected_image_id_ = kInvalidImageId; |
| 562 | selected_point3D_id_ = kInvalidPoint3DId; |
| 563 | Upload(); |
| 564 | } |
| 565 | |
| 566 | int ModelViewerWidget::GetProjectionType() const { |
| 567 | return options_->render->projection_type; |