mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
updated doc
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# line2d
|
# line2d
|
||||||
|
|
||||||
Creates a line from two points.
|
Creates a line from two points. When the end points are `CAP_ROUND`,
|
||||||
|
* you can use `$fa`, `$fs` or `$fn` to controll the circle module used internally.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
@@ -9,10 +10,11 @@ Creates a line from two points.
|
|||||||
- `width` : The line width.
|
- `width` : The line width.
|
||||||
- `p1Style` : The end-cap style of the point `p1`. The value must be `"CAP_BUTT"`, `"CAP_SQUARE"` or `"CAP_ROUND"`. The default value is `"CAP_SQUARE"`.
|
- `p1Style` : The end-cap style of the point `p1`. The value must be `"CAP_BUTT"`, `"CAP_SQUARE"` or `"CAP_ROUND"`. The default value is `"CAP_SQUARE"`.
|
||||||
- `p2Style` : The end-cap style of the point `p2`. The value must be `"CAP_BUTT"`, `"CAP_SQUARE"` or `"CAP_ROUND"`. The default value is `"CAP_SQUARE"`.
|
- `p2Style` : The end-cap style of the point `p2`. The value must be `"CAP_BUTT"`, `"CAP_SQUARE"` or `"CAP_ROUND"`. The default value is `"CAP_SQUARE"`.
|
||||||
- `round_fn` : When the end-cap style is `"CAP_ROUND"`, it controlls the `$fn` value used by the `circle` module. The default value is `24`.
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
$fn = 24;
|
||||||
|
|
||||||
line2d(p1 = [0, 0], p2 = [5, 0], width = 1);
|
line2d(p1 = [0, 0], p2 = [5, 0], width = 1);
|
||||||
|
|
||||||
translate([0, -2, 0])
|
translate([0, -2, 0])
|
||||||
|
Reference in New Issue
Block a user