mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-13 09:14:01 +02:00
tutorial fixes
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
[Prev: Using color with attachments](Tutorial-Attachment-Color)
|
[Prev: Using Color with Attachments](Tutorial-Attachment-Color)
|
||||||
|
|
||||||
# Tagged Operations
|
# Tagged Operations
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user