Skip to content

Commit bed1237

Browse files
committed
Scalars only PCA modes
1 parent 181baf4 commit bed1237

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Studio/Analysis/AnalysisTool.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ bool AnalysisTool::compute_stats() {
501501
particles = shape->get_global_correspondence_points();
502502
} else if (pca_scalar_only_mode()) {
503503
stats_.set_num_values_per_particle(1);
504+
shape->get_reconstructed_meshes(true);
505+
std::string target_feature = ui_->pca_scalar_combo->currentText().toStdString();
506+
shape->load_feature(DisplayMode::Reconstructed, target_feature);
504507
particles = shape->get_point_features(ui_->pca_scalar_combo->currentText().toStdString());
505508
} else {
506509
stats_.set_num_values_per_particle(4);
@@ -696,7 +699,6 @@ Particles AnalysisTool::get_shape_points(int mode, double value) {
696699
positions = extract_shape_only(temp_shape_);
697700
computed_scalars_ = extract_scalar_only(temp_shape_);
698701
} else if (pca_scalar_only_mode()) {
699-
SW_LOG("Scalar only mode not implemented yet");
700702
computed_scalars_ = temp_shape_;
701703
positions = construct_mean_shape();
702704
}

0 commit comments

Comments
 (0)