Compare commits

..

1 commit

Author SHA1 Message Date
Alex Matulich
51b6b81d08
Merge 65ec17f4b3 into c442c5159a 2024-12-05 07:37:05 +00:00

View file

@ -1992,14 +1992,13 @@ 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(), supershape() // See Also: circle(), square()
// 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. 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. // 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.
// 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: