Enable endcap1 for stroke() with a single-vertex path.

This commit is contained in:
Garth Minette
2021-11-18 19:33:57 -08:00
parent 96a210b5a4
commit eb3bd8da0a
2 changed files with 32 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ hexagon(d=50, anchor=LEFT);
```
```openscad-2D
oval(d=[50,30], anchor=FRONT);
ellipse(d=[50,30], anchor=FRONT);
```
@@ -166,7 +166,7 @@ square([40,30], spin=30);
```
```openscad-2D
oval(d=[40,30], spin=30);
ellipse(d=[40,30], spin=30);
```
@@ -821,10 +821,10 @@ module ovalish(l,rx1,ry1,rx2,ry2, anchor=CENTER, spin=0, orient=UP) {
hull() {
up(l/2-0.005)
linear_extrude(height=0.01, center=true)
oval([rx2,ry2]);
ellipse([rx2,ry2]);
down(l/2-0.005)
linear_extrude(height=0.01, center=true)
oval([rx1,ry1]);
ellipse([rx1,ry1]);
}
children();
}