Merge pull request #1727 from adrianVmariano/master

tutorial fixes
This commit is contained in:
adrianVmariano
2025-06-21 14:54:28 -04:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
[Prev: Using attach()](Tutorial-Attachment-Attach)
# Attachment Parts # Attachment Parts
Some objects provide named attachable parts that you can select Some objects provide named attachable parts that you can select
@@ -10,21 +12,20 @@ Here is a tube with its anchors shown:
include<BOSL2/std.scad> include<BOSL2/std.scad>
tube(id=20,h=15,wall=3) tube(id=20,h=15,wall=3)
show_anchors(); show_anchors();
``` ```
The anchors are all on the outside wall of the tube and give you no The anchors are all on the outside wall of the tube and give you no
method for placing a child **inside** the tube. In order to attach method for placing a child **inside** the tube. In order to attach
inside the tube, we select the "inside" part using the `attach_part()` inside the tube, we select the "inside" part using the `attach_part()`
module. module.
```openscad-3D ```openscad-3D
include<BOSL2/std.scad> include<BOSL2/std.scad>
tube(id=20,h=15,wall=3) tube(id=20,h=15,wall=3)
attach_part("inside") attach_part("inside")
align(BACK,TOP) align(BACK,TOP)
color("lightblue") cuboid(4); color("lightblue") cuboid(4);
``` ```
Now when we align the cube to the BACK wall of the tube it appears on Now when we align the cube to the BACK wall of the tube it appears on
the inside of the tube. If you need to attach to both the inside and the inside of the tube. If you need to attach to both the inside and
@@ -46,5 +47,4 @@ tube(id=20,h=15,wall=3){
} }
``` ```
[Next: Using Color with Attachments](Tutorial-Attachment-Color)

View File

@@ -1,4 +1,4 @@
[Prev: Using color with attachments](Tutorial-Attachment-Color) [Prev: Using Color with Attachments](Tutorial-Attachment-Color)
# Tagged Operations # Tagged Operations