Macro Intersection: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
{{Macro
{{Macro
|Name=Macro Intersection
|Name=Macro Intersection
Line 15: Line 16:
}}
}}


== Description ==
== Description == <!--T:2-->


<!--T:3-->
Creates a parametric feature python object with the shape of the intersection between 2 or 3 edges / faces. The intersection is typically either an edge or a vertex. Usage: Select in the 3d view 2 or 3 edges or faces, then run the macro. Full documentation can be found on github: [https://github.com/mwganson/intersection https://github.com/mwganson/intersection]
Creates a parametric feature python object with the shape of the intersection between 2 or 3 edges / faces. The intersection is typically either an edge or a vertex. Usage: Select in the 3d view 2 or 3 edges or faces, then run the macro. Full documentation can be found on github: [https://github.com/mwganson/intersection https://github.com/mwganson/intersection]


Line 22: Line 24:
[[File:Macro_Intersection_scr.png|600px]]
[[File:Macro_Intersection_scr.png|600px]]
<translate>
<translate>
<!--T:4-->
{{Caption|Macro Intersection screenshot}}
{{Caption|Macro Intersection screenshot}}


=== Legend ===
=== Legend === <!--T:5-->




<!--T:6-->
{{Codeextralink|https://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/97932f2a922d9d04659783c01988ad900f1ace75/Intersection.FCMacro|Intersection.FCMacro}}
{{Codeextralink|https://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/97932f2a922d9d04659783c01988ad900f1ace75/Intersection.FCMacro|Intersection.FCMacro}}




<!--T:7-->
ToolBar Icon
ToolBar Icon
</translate>
</translate>

Revision as of 20:46, 2 March 2022

Other languages:

Macro Intersection

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

Macro version: 2022.02.26
Last modified: 2022-02-26
FreeCAD version: 0.19 or later
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
2022.02.26
Date last modified
2022-02-26
FreeCAD Version(s)
0.19 or later
Default shortcut
None
See also

Description

Creates a parametric feature python object with the shape of the intersection between 2 or 3 edges / faces. The intersection is typically either an edge or a vertex. Usage: Select in the 3d view 2 or 3 edges or faces, then run the macro. Full documentation can be found on github: https://github.com/mwganson/intersection

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/97932f2a922d9d04659783c01988ad900f1ace75/Intersection.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://gist.github.com/mwganson/acf6d419ee0d3b5636ea82221846d758/raw/97932f2a922d9d04659783c01988ad900f1ace75/Intersection.FCMacro")


ToolBar Icon

Script

Macro Intersection.FCMacro