mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-25 13:59:04 +02:00
1.0 KiB
1.0 KiB
line3d
Creates a 3D line from two points.
Parameters
p1
: 3 element vector[x, y, z]
.p2
: 3 element vector[x, y, z]
.thickness
: The line thickness.p1Style
: The end-cap style of the pointp1
. The value must beCAP_BUTT
,CAP_CIRCLE
orCAP_SPHERE
. The default value isCAP_CIRCLE
.p2Style
: The end-cap style of the pointp2
. The value must beCAP_BUTT
,CAP_CIRCLE
orCAP_SPHERE
. The default value isCAP_CIRCLE
.fn
: It controlls the$fn
value used by thecircle
orsphere
module. The default value is24
.
Examples
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1
);
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1,
p1Style = CAP_BUTT,
p2Style = CAP_BUTT
);
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1,
p1Style = CAP_SPHERE,
p2Style = CAP_SPHERE
);