mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
updated doc
This commit is contained in:
@@ -9,14 +9,15 @@ Creates a 3D line from two points.
|
|||||||
- `thickness` : The line thickness.
|
- `thickness` : The line thickness.
|
||||||
- `p1Style` : The end-cap style of the point `p1`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
|
- `p1Style` : The end-cap style of the point `p1`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
|
||||||
- `p2Style` : The end-cap style of the point `p2`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
|
- `p2Style` : The end-cap style of the point `p2`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
|
||||||
- `fn` : It controlls the `$fn` value used by the `circle` or `sphere` module. The default value is `24`.
|
- `$fa`, `$fs`, `$fn` : Used by the `circle` or `sphere` module internally. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) or [the sphere module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#sphere) for more details.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
line3d(
|
line3d(
|
||||||
p1 = [0, 0, 0],
|
p1 = [0, 0, 0],
|
||||||
p2 = [10, 2, 10],
|
p2 = [10, 2, 10],
|
||||||
thickness = 1
|
thickness = 1,
|
||||||
|
$fn = 24
|
||||||
);
|
);
|
||||||
|
|
||||||

|

|
||||||
@@ -26,7 +27,8 @@ Creates a 3D line from two points.
|
|||||||
p2 = [10, 2, 10],
|
p2 = [10, 2, 10],
|
||||||
thickness = 1,
|
thickness = 1,
|
||||||
p1Style = "CAP_BUTT",
|
p1Style = "CAP_BUTT",
|
||||||
p2Style = "CAP_BUTT"
|
p2Style = "CAP_BUTT",
|
||||||
|
$fn = 24
|
||||||
);
|
);
|
||||||
|
|
||||||

|

|
||||||
@@ -36,7 +38,8 @@ Creates a 3D line from two points.
|
|||||||
p2 = [10, 2, 10],
|
p2 = [10, 2, 10],
|
||||||
thickness = 1,
|
thickness = 1,
|
||||||
p1Style = "CAP_SPHERE",
|
p1Style = "CAP_SPHERE",
|
||||||
p2Style = "CAP_SPHERE"
|
p2Style = "CAP_SPHERE",
|
||||||
|
$fn = 24
|
||||||
);
|
);
|
||||||
|
|
||||||

|

|
||||||
|
Reference in New Issue
Block a user