|Part → Join → Connect objects|
|Introduced in version|
|Part JoinEmbed, Part JoinCutout, Part Boolean, Part Thickness|
Connect tool connects interiors of two walled objects (e.g., pipes). It can also join shells and wires.
- Select objects to be connected.
The order of selection is not important, since the action of the tool is symmetric. It is enough to select one sub-shape of each object (e.g., faces). You can also select a compound containing all the shapes to be connected, e.g. Draft OrthoArray.
- Invoke the Part JoinConnect command using several ways:
- Press the Part JoinConnect button in the Part toolbar
- Use the Part → Join → Connect objects entry in the Part menu
A Connect parametric object is created. Original objects are hidden, and the result of connecting is shown in 3D view.
- DataObjects: List of objects to be connected. Generally, at least two objects are needed, but a single compound containing the shapes to connect will do as well. (as of FreeCAD v0.17.8053, this property is not displayed in Property editor, and can only be accessed via Python).
- DataRefine: Sets whether to apply Refine operation or not, to the final shape. The default value is determined by a 'Automatically refine shape after boolean operation' checkbox in PartDesign Preferences.
- DataTolerance: "fuzziness" value. This is an extra tolerance to apply when searching for intersections, in addition to tolerances stored in the input shapes.
- Create a pipe by applying thickness to a cylinder:
- Create another, smaller diameter pipe, and place it so that it pierces the wall of the first pipe:
- Select the first pipe and the second pipe, and click the 'Connect objects' option from the Join tools dropdown toolbar button.
- Use some cross-section tool (Clipping plane, Arch Section Plane, Arch Cut Plane) to reveal internals. In the picture below, Arch Section Plane is used.
The algorithms behind Join tools are quite simple, and understanding them is important to use the tools correctly. The algorithm of Connect, in particular, is quite a bit more complex than others, but it's generally enough to think of it as a symmetric variant of 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.
- If at step 1 each object remains in one piece, the result of Connect will be equivalent to union of Objects.
- Now, all compounds supplied are exploded prior to connecting. This means that self-intersecting compounds, which are invalid for all other Boolean operations, are valid for Connect. (This may be changed in the future.)
- The "largest" piece is the one that has largest mass. That is, for solids, volumes are compared; for shells and faces, areas are compared, and so on.
- Since FreeCAD v0.17.8053, and if OCC version is 6.9.0 and above, Connect is almost as fast as all other Boolean operations. For older versions, Connect is approximately 5 times slower than a regular Boolean operation, and works only on solids.
The Join tools can by used in macros and from the Python console by using the following function:
- Creates an empty Connect feature. The 'Objects' property must be assigned explicitly, afterwards.
- Returns the newly created object.
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.
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 (Github link) under where FreeCAD is installed.
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Deprecated or unmaintained workbenches: Complete, Drawing, Robot
- Hubs: User hub, Power users hub, Developer hub