Skip to content

Commit

Permalink
ReverseEngineering: improve manual segmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 8, 2020
1 parent 00ba1c4 commit a3ca534
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Mod/ReverseEngineering/Gui/SegmentationManual.cpp
Expand Up @@ -251,8 +251,13 @@ void SegmentationManual::createSegment()
Mesh::Feature* feaSegm = static_cast<Mesh::Feature*>(adoc->addObject("Mesh::Feature", "Segment"));
Mesh::MeshObject* feaMesh = feaSegm->Mesh.startEditing();
feaMesh->swap(*segment);
feaMesh->clearFacetSelection();
feaSegm->Mesh.finishEditing();

if (ui->checkBoxHideSegm->isChecked()) {
feaSegm->Visibility.setValue(false);
}

if (ui->checkBoxCutSegm->isChecked()) {
Mesh::MeshObject* editmesh = it->Mesh.startEditing();
editmesh->deleteFacets(facets);
Expand Down
15 changes: 14 additions & 1 deletion src/Mod/ReverseEngineering/Gui/SegmentationManual.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>346</width>
<height>804</height>
<height>833</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -315,6 +315,19 @@
<property name="text">
<string>Cut segment from mesh</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkBoxHideSegm">
<property name="text">
<string>Hide segment</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
Expand Down

0 comments on commit a3ca534

Please sign in to comment.