MeshRepairControls.ui 22.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MeshRepairControls</class>
 <widget class="QWidget" name="MeshRepairControls">
  <property name="windowTitle">
   <string>controls</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <widget class="QGroupBox" name="groupBox_3">
     <property name="title">
      <string>Vertex operations</string>
     </property>
Jan Möbius's avatar
Jan Möbius committed
14
     <layout class="QVBoxLayout" name="verticalLayout_6">
15
      <item>
Jan Möbius's avatar
Jan Möbius committed
16 17 18 19 20 21 22 23
       <widget class="QLabel" name="label_8">
        <property name="text">
         <string>Detect flat triangles (with valence 3 vertices):</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_10">
24
        <item>
Jan Möbius's avatar
Jan Möbius committed
25 26 27 28 29
         <widget class="QPushButton" name="valenceThreeButton">
          <property name="toolTip">
           <string>Select all vertices of valence three which don't make the mesh much more detailed. This is indicated by very similar adjacent face normals: the area around the vertex is nearly planar.

These vertices can usually be removed without destroying the features of the mesh.</string>
30
          </property>
Jan Möbius's avatar
Jan Möbius committed
31 32
          <property name="text">
           <string>Select vertices</string>
33
          </property>
Jan Möbius's avatar
Jan Möbius committed
34
         </widget>
35 36
        </item>
        <item>
Jan Möbius's avatar
Jan Möbius committed
37 38 39 40 41
         <widget class="QLabel" name="label_9">
          <property name="text">
           <string>with angle difference &lt; </string>
          </property>
         </widget>
42 43
        </item>
        <item>
Jan Möbius's avatar
Jan Möbius committed
44 45 46 47 48 49
         <widget class="QDoubleSpinBox" name="valenceThreeSpinbox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
            <horstretch>80</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
50
          </property>
Jan Möbius's avatar
Jan Möbius committed
51 52
          <property name="suffix">
           <string>°</string>
53
          </property>
54 55 56
          <property name="decimals">
           <number>4</number>
          </property>
Jan Möbius's avatar
Jan Möbius committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
          <property name="maximum">
           <double>180.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>30.000000000000000</double>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_11">
        <item>
         <widget class="QPushButton" name="repairRemoveVButton">
          <property name="toolTip">
           <string>Repair the mesh by collapsing the previously selected valence 3 vertices.</string>
          </property>
          <property name="text">
           <string>Collapse selected vertices</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="Line" name="line_3">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
       </widget>
      </item>
91 92 93 94 95 96 97 98 99 100
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Edge operations</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_4">
      <item>
101 102 103 104 105 106 107 108
       <widget class="QLabel" name="label_5">
        <property name="text">
         <string>Detect skinny triangles:</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_3">
109
        <item>
110 111 112
         <widget class="QLabel" name="label_4">
          <property name="text">
           <string>Select edges of length</string>
113
          </property>
114
         </widget>
115 116
        </item>
        <item>
117
         <layout class="QVBoxLayout" name="verticalLayout_5">
118
          <item>
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
           <widget class="QPushButton" name="detectELargerButton">
            <property name="sizePolicy">
             <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
            <property name="minimumSize">
             <size>
              <width>0</width>
              <height>18</height>
             </size>
            </property>
            <property name="toolTip">
             <string>Detect short edges</string>
            </property>
            <property name="statusTip">
             <string>Detect long edges</string>
            </property>
            <property name="whatsThis">
             <string/>
            </property>
141
            <property name="text">
142
             <string>&gt;</string>
143 144 145 146
            </property>
           </widget>
          </item>
          <item>
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
           <widget class="QPushButton" name="detectEShorterButton">
            <property name="sizePolicy">
             <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
            <property name="minimumSize">
             <size>
              <width>0</width>
              <height>18</height>
             </size>
            </property>
            <property name="statusTip">
             <string>Detect short edges</string>
162 163
            </property>
            <property name="text">
164
             <string>&lt;</string>
165 166 167
            </property>
           </widget>
          </item>
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
         </layout>
        </item>
        <item>
         <widget class="QDoubleSpinBox" name="edgeSpin">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="toolTip">
           <string>Edge length</string>
          </property>
          <property name="statusTip">
           <string>Edge length</string>
          </property>
          <property name="decimals">
185
           <number>10</number>
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
          </property>
          <property name="maximum">
           <double>999999999.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>1.000000000000000</double>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_8">
        <item>
         <widget class="QPushButton" name="repairCollapseEButton">
          <property name="enabled">
           <bool>true</bool>
          </property>
          <property name="toolTip">
           <string>Repair skinny triangles by collapsing the previously selected short or long edges.</string>
          </property>
          <property name="text">
           <string>Collapse selected edges</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="Line" name="line_2">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
         <widget class="QPushButton" name="detectCapAngle">
          <property name="toolTip">
           <string>Select all edges that have an opposite angle greater than or equal to the given angle. If this angle is very large, only edges of very skinny triangles will be selected.</string>
          </property>
          <property name="statusTip">
           <string/>
          </property>
          <property name="text">
           <string>Select opposite edges</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="label_2">
          <property name="text">
           <string>to angles &gt;</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QDoubleSpinBox" name="capAngleSpinbox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="minimumSize">
           <size>
            <width>80</width>
            <height>0</height>
           </size>
          </property>
          <property name="statusTip">
           <string>Angle threshold</string>
          </property>
          <property name="prefix">
           <string/>
          </property>
          <property name="suffix">
           <string>°</string>
          </property>
269 270 271
          <property name="decimals">
           <number>4</number>
          </property>
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
          <property name="maximum">
           <double>180.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>170.000000000000000</double>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_7">
        <item>
         <widget class="QPushButton" name="repairFlipEButton">
          <property name="toolTip">
           <string>Repair skinny triangles by flipping the previously selected edges.</string>
          </property>
          <property name="text">
           <string>Flip selected edges</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="Line" name="line">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLabel" name="label_6">
        <property name="text">
         <string>Detect foldovers:</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_2">
        <item>
         <widget class="QPushButton" name="detectFoldoverButton">
          <property name="toolTip">
           <string>Select all edges that could be a foldover.
319 320 321
Foldover detection is done by comparing the normals of the adjacent faces. If their difference is greater than the given angle, the edge will be selected.

There is no automatic algorithm to fix these foldovers here. So you will have to select the faces that are actual foldovers, and then flip them using &quot;Flip selected face orientation&quot; (in &quot;Face operations&quot;).</string>
322 323 324 325 326 327 328 329 330 331 332 333
          </property>
          <property name="text">
           <string>Select edges</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="label">
          <property name="text">
           <string>with angle difference &gt;</string>
          </property>
         </widget>
334 335
        </item>
        <item>
336 337 338 339 340 341 342 343 344 345 346 347
         <widget class="QDoubleSpinBox" name="detectFoldoverSpinbox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="minimumSize">
           <size>
            <width>80</width>
            <height>0</height>
           </size>
348
          </property>
349
          <property name="sizeIncrement">
350
           <size>
351 352
            <width>0</width>
            <height>0</height>
353 354
           </size>
          </property>
355 356 357 358 359 360
          <property name="statusTip">
           <string>Angle threshold</string>
          </property>
          <property name="suffix">
           <string>°</string>
          </property>
361 362 363
          <property name="decimals">
           <number>4</number>
          </property>
364 365 366 367 368 369 370 371 372 373
          <property name="maximum">
           <double>180.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>90.000000000000000</double>
          </property>
         </widget>
374 375 376 377 378 379 380 381 382 383 384 385 386
        </item>
       </layout>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="groupBox_4">
     <property name="title">
      <string>Face operations</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_3">
      <item>
387 388 389 390 391 392 393 394
       <widget class="QLabel" name="label_7">
        <property name="text">
         <string>Detect skinny triangles:</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_5">
395
        <item>
396 397 398
         <widget class="QPushButton" name="triangleAspectButton">
          <property name="toolTip">
           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Selects all triangles with an aspect ratio greater than the given one. If this ratio is very large, only very skinny triangles will be selected.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
399
          </property>
400 401
          <property name="text">
           <string>Select triangles</string>
402
          </property>
403
         </widget>
404 405
        </item>
        <item>
406 407 408 409 410
         <widget class="QLabel" name="label_3">
          <property name="text">
           <string>of aspect ratio &gt;</string>
          </property>
         </widget>
411 412
        </item>
        <item>
413 414 415 416 417 418
         <widget class="QDoubleSpinBox" name="triangleAspectSpinbox">
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
419
          </property>
420
          <property name="decimals">
421
           <number>6</number>
422 423 424 425 426 427 428 429 430
          </property>
          <property name="maximum">
           <double>999999999.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>10.000000000000000</double>
431
          </property>
432
         </widget>
433 434 435
        </item>
       </layout>
      </item>
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
      <item>
       <widget class="Line" name="line_4">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLabel" name="label_12">
        <property name="text">
         <string>Manually repair foldovers:</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="flipOrientation">
        <property name="toolTip">
         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Flip the normals of all selected faces on the target meshes by reversing the vertex order. This can be used to manually fix foldovers detected in &amp;quot;Edge operations&amp;quot;. It either inverts the whole mesh or, if faces are selected, only the selection.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
        <property name="statusTip">
         <string>Flip the normals of all target meshes</string>
        </property>
        <property name="text">
         <string>Flip face orientation</string>
        </property>
       </widget>
      </item>
463 464 465
     </layout>
    </widget>
   </item>
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
   <item>
    <widget class="QGroupBox" name="groupBox_2">
     <property name="title">
      <string>Normals</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_2">
      <item>
       <widget class="QPushButton" name="computeNormals">
        <property name="toolTip">
         <string>Recomputes Vertex and Face Normals on all Target Meshes</string>
        </property>
        <property name="statusTip">
         <string>Recomputes Vertex and Face Normals on all Target Meshes</string>
        </property>
        <property name="whatsThis">
         <string>Recomputes Vertex and Face Normals on all Target Meshes</string>
        </property>
        <property name="text">
         <string>Compute Normals</string>
        </property>
       </widget>
      </item>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_12">
        <item>
         <widget class="QPushButton" name="computeVertexNormals">
          <property name="toolTip">
           <string>Recomputes Vertex Normals on all Target Meshes</string>
          </property>
          <property name="statusTip">
           <string>Recomputes Vertex Normals on all Target Meshes</string>
          </property>
          <property name="whatsThis">
           <string>Recomputes Vertex Normals on all Target Meshes</string>
          </property>
          <property name="text">
           <string>Vertex</string>
          </property>
         </widget>
        </item>
506 507 508 509 510 511 512
        <item>
         <widget class="QPushButton" name="computeHalfedgeNormals">
          <property name="text">
           <string>Halfedge</string>
          </property>
         </widget>
        </item>
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533
        <item>
         <widget class="QPushButton" name="computeFaceNormals">
          <property name="toolTip">
           <string>Recomputes Face Normals on all Target Meshes</string>
          </property>
          <property name="statusTip">
           <string>Recomputes Face Normals on all Target Meshes</string>
          </property>
          <property name="whatsThis">
           <string>Recomputes Face Normals on all Target Meshes</string>
          </property>
          <property name="text">
           <string>Face</string>
          </property>
         </widget>
        </item>
       </layout>
      </item>
     </layout>
    </widget>
   </item>
Jan Möbius's avatar
Jan Möbius committed
534 535 536
   <item>
    <widget class="QGroupBox" name="groupBox_5">
     <property name="title">
537
      <string>General Operations</string>
Jan Möbius's avatar
Jan Möbius committed
538 539
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_7">
540
      <item>
541 542 543 544
       <layout class="QHBoxLayout" name="horizontalLayout_13">
        <item>
         <widget class="QPushButton" name="snapBoundaryButton">
          <property name="toolTip">
Jan Möbius's avatar
Jan Möbius committed
545
           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Snaps selected boundary vertices if they are closer than the given distance. No new vertices will be introduced on either boundary side, so they are just snapped to existing ones.&lt;/p&gt;&lt;p&gt;If vertices in the interior are selected, they will also get snapped to the opposite boundary, if in range.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
          </property>
          <property name="text">
           <string>Snap Boundary</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="label_10">
          <property name="text">
           <string>max. Distance</string>
          </property>
          <property name="alignment">
           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QDoubleSpinBox" name="snapBoundarySpinBox">
564 565 566 567 568 569
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
570
          <property name="decimals">
571
           <number>10</number>
572 573
          </property>
          <property name="minimum">
574
           <double>0.000000000000000</double>
575
          </property>
576 577 578
          <property name="maximum">
           <double>999999999.000000000000000</double>
          </property>
579 580 581 582 583 584 585 586 587 588 589
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>0.500000000000000</double>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
590 591 592 593 594 595 596 597 598
       <widget class="QPushButton" name="fixNonManifoldVerticesButton">
        <property name="toolTip">
         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Remove non-manifold vertices by duplicating them&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
        </property>
        <property name="text">
         <string>Fix non-manifold vertices</string>
        </property>
       </widget>
      </item>
Jan Möbius's avatar
Jan Möbius committed
599 600 601 602
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_9">
        <item>
         <widget class="QPushButton" name="fixMeshButton">
603 604 605
          <property name="toolTip">
           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This button will try to fix triangle meshes. &lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;Degenerated faces will be removed and all vertices which are closer than the given distance will be collapsed. Non-manifold configurations at vertices will be removed and all faces of each component will be updated to have the same orientation.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
606 607 608 609 610 611 612 613 614 615 616 617 618 619
          <property name="text">
           <string>Fix Triangle Mesh</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="label_14">
          <property name="text">
           <string>distance</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QDoubleSpinBox" name="fixMeshBox">
620 621 622 623 624 625
          <property name="sizePolicy">
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
Jan Möbius's avatar
Jan Möbius committed
626
          <property name="decimals">
627
           <number>10</number>
Jan Möbius's avatar
Jan Möbius committed
628 629 630 631
          </property>
          <property name="minimum">
           <double>0.000010000000000</double>
          </property>
632 633 634
          <property name="maximum">
           <double>999999999.000000000000000</double>
          </property>
Jan Möbius's avatar
Jan Möbius committed
635 636 637 638 639 640 641 642 643 644 645 646 647
          <property name="singleStep">
           <double>0.100000000000000</double>
          </property>
          <property name="value">
           <double>0.010000000000000</double>
          </property>
         </widget>
        </item>
       </layout>
      </item>
     </layout>
    </widget>
   </item>
648 649 650 651 652
   <item>
    <spacer name="verticalSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
653 654 655 656 657 658
     <property name="sizeHint" stdset="0">
      <size>
       <width>0</width>
       <height>0</height>
      </size>
     </property>
659 660
    </spacer>
   </item>
661 662 663 664 665
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>