Macro Intersection/ru

Other languages:

Macro Intersection

Description
Finds the intersection between 2 or 3 selected edges / faces.

Macro version: 2024.10.17
Last modified: 2024-10-17
FreeCAD version: 0.19 or later
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
2024.10.17
Date last modified
2024-10-17
FreeCAD Version(s)
0.19 or later
Default shortcut
None
See also
None

Описание

Находит пересечение двух или трёх выделенных рёбер или граней, также работает с Опорными Плоскостями (Datum Planes) и Опорными Линиями (Datum Lines). Создаёт параметрический объект feature python, содержащий форму пересечения. Пересечение обычно является либо ребром, либо вершиной.

Применение

Select two or three edges, faces, Datum Planes or Datum Lines in the 3D view, then run the macro. Full documentation can be found on github: Intersection on github

Macro Intersection screenshot

Legend

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://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/dff80f8b50d83312e936104f6b062b88279add64/Intersection.py" + "\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://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/dff80f8b50d83312e936104f6b062b88279add64/Intersection.py")
<class="rawcodeurl"><a href="https://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/dff80f8b50d83312e936104f6b062b88279add64/Intersection.py">raw code</a>


ToolBar Icon

Script

Macro Intersection.FCMacro