Macro Evidenzia differenze

From FreeCAD Documentation
This page is a translated version of the page Macro HighlightDifference and the translation is 18% complete.
Outdated translations are marked like this.
Other languages:

Evidenzia differenze

Descrizione
Calcola le differenze tra due forme

Versione macro: 1.0
Ultima modifica: 2015-09-24
Autore: Gaël Ecorchard
Autore
Gaël Ecorchard
Download
None
Link
Versione macro
1.0
Data ultima modifica
2015-09-24
Versioni di FreeCAD
None
Scorciatoia
Nessuna
Vedere anche
Nessuno

Description

Descrizione

Calcola la differenza tra due forme. Le parti aggiunte sono contrassegnate in rosso, le rimozioni sono contrassegnate in verde. Entrambe le parti originali diventano semitrasparenti. Nella console viene stampato il volume delle parti aggiunte e rimosse.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Utility/HighlightDifference.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Utility/HighlightDifference.FCMacro")


Result difference two objects created

Example

Esempio

Script

Script

Il codice è visibile in Github: Utility/HighlightDifference.FCMacro.

Links

Link