|
Menu location |
---|
Part → Join → Connect objects |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
0.16 |
See also |
Part JoinEmbed, Part JoinCutout, Part Boolean, Part Thickness |
Instrument de conectare pentru îmbinarea inerioarelor a două obiecte goale-tip perete (de ex. Conducte). Poate asocia, de asemenea, cu cochiliile și filamente/polilinii.
Connect
Connect
Algoritmii din spatele instrumentelor de conectare sunt relativ de simple, iar înțelegerea acestora este importantă pentru utilizarea corectă a instrumentelor. Algoritmul Connect, în special, este un pic mai complex decât alții, însă în general este suficient să ne gândim la acesta ca la o variantă simetrică Embed algorithm
1. Each object is split into pieces by intersections with other objects. (see Part BooleanFragments)
2. From the pieces of an object, only the largest one is kept; all the rest are thrown away.
3. Intersection pieces that touch at least two objects are added to result. Then, the pieces are joined together to form the result of Connect.
Instrumentul Join poate fi folosit în macros și din consola python utilizând următoarea funcție:
BOPTools.JoinFeatures.makeConnect(name)
Connect can also be applied to plain shapes, without the need to have a document object, via:
Part.BOPTools.JoinAPI.connect(list_of_shapes, tolerance = 0.0)
This can be useful for making custom Python scripted features.
Exempluː
import Part
j = Part.BOPTools.JoinFeatures.makeConnect(name= 'Connect')
j.Objects = FreeCADGui.Selection.getSelection()
The tool itself is implemented in Python, see /Mod/Part/BOPTools/JoinFeatures.py under where FreeCAD is installed.