Macro CenterOfMass/it

Centro di massa

Descrizione
Fornisce il centro di massa degli oggetti selezionati.

Versione macro: 0.5.0
Ultima modifica: 2022-04-06
Autore: chupins, s-quirin
Autore
chupins, s-quirin
Download
None
Link
Versione macro
0.5.0
Data ultima modifica
2022-04-06
Versioni di FreeCAD
None
Scorciatoia
Nessuna
Vedere anche
Nessuno

Descrizione

Fornisce la massa totale e la posizione del centro di massa risultante da più oggetti selezionati. È possibile scegliere diverse densità per ciascun oggetto.

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/Information/CenterOfMass.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/Information/CenterOfMass.FCMacro")
<class="rawcodeurl"><a href="https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Information/CenterOfMass.FCMacro">raw code</a>


Utilizzo

Selezionare gli oggetti

Available Options

Script

Scarica la macro da GitHub:

Macro CenterOfMass.FCMacro

Scaricare e incollare i file icona in una sottodirectory denominata CenterOfMass nella directory delle macro:

Link

La discussione nel forum Macro to compute center of mass

Versione

Version / Date of merge

0.8.3 / 2025-01-23:

0.8.0 / 2025-01-06: Thanks to farahats9 for the contribution

0.7.6 / 2024-08-01: Prepare for major FreeCAD release

0.7.3 / 2023-09-11:

0.7.0 / 2023-02-13:

0.6.0 / 2022-08-27:

0.5.8 / 2022-05-31:

0.5.0 / 2022-04-07: complete rewrite by s-quirin (SyProLei project at Saarland University)

0.4.1 / 2019-05-25: Add default density button, sphere cursor, change window behavior, correct a container part issue.

0.1.2 / 2018-11-10: