ReverseEngineering: improve manual segmentation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>346</width>
|
||||
<height>804</height>
|
||||
<height>833</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user