mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-15 08:59:40 +00:00
Compare commits
2 commits
51b6b81d08
...
453a1cd6f1
Author | SHA1 | Date | |
---|---|---|---|
|
453a1cd6f1 | ||
|
dd96a30c92 |
1 changed files with 4 additions and 3 deletions
|
@ -1992,13 +1992,14 @@ function reuleaux_polygon(n=3, r, d, anchor=CENTER, spin=0) =
|
||||||
// Synopsis: Creates a shape between a circle and a square, centered on the origin.
|
// Synopsis: Creates a shape between a circle and a square, centered on the origin.
|
||||||
// SynTags: Geom, Path
|
// SynTags: Geom, Path
|
||||||
// Topics: Shapes (2D), Paths (2D), Path Generators, Attachable
|
// Topics: Shapes (2D), Paths (2D), Path Generators, Attachable
|
||||||
// See Also: circle(), square()
|
// See Also: circle(), square(), supershape()
|
||||||
// Usage: As Module
|
// Usage: As Module
|
||||||
// squircle(squareness, size) [ATTACHMENTS];
|
// squircle(squareness, size) [ATTACHMENTS];
|
||||||
// Usage: As Function
|
// Usage: As Function
|
||||||
// path = squircle(squareness, size);
|
// path = squircle(squareness, size);
|
||||||
// Description:
|
// Description:
|
||||||
// A squircle is a shape intermediate between a square/rectangle and a circle/ellipse. Squircles are sometimes used to make dinner plates (more area for the same radius as a circle), keyboard buttons, and smartphone icons. Old CRT television screens also resembled squircles.
|
// A squircle is a shape intermediate between a square/rectangle and a circle/ellipse. A squircle is a special case of supershape (shown in `supershape()` example 3), but this implementation uses a different method that requires just two parameters, and the vertex distribution is optimized for smoothness.
|
||||||
|
// Squircles are sometimes used to make dinner plates (more area for the same radius as a circle), keyboard buttons, and smartphone icons. Old CRT television screens also resembled squircles.
|
||||||
// When called as a module, creates a 2D squircle with the desired squareness. Uses "intersect" type anchoring.
|
// When called as a module, creates a 2D squircle with the desired squareness. Uses "intersect" type anchoring.
|
||||||
// When called as a function, returns a 2D path for a squircle.
|
// When called as a function, returns a 2D path for a squircle.
|
||||||
// Arguments:
|
// Arguments:
|
||||||
|
|
Loading…
Reference in a new issue