You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Synopsis: Returns a 2D Catenary chain or arch path.
869
+
// SynTags: Path
870
+
// Topics: Paths
871
+
// See Also: circle(), stroke()
872
+
// Usage:
873
+
// path = catenary(width, droop=|angle=, n=);
874
+
// Description:
875
+
// Returns a 2D Catenary path, which is the path a chain held at both ends will take.
876
+
// The path will have the endpoints at `[±width/2, 0]`, and the middle of the path will droop
877
+
// towards Y- if the given droop= or angle= is positive. It will droop towards Y+ if the
878
+
// droop= or angle= is negative. You *must* specify one of droop= or angle=.
879
+
// Arguments:
880
+
// width = The straight-line distance between the endpoints of the path.
881
+
// droop = If given, specifies the height difference between the endpoints and the hanging middle of the path. If given a negative value, returns an arch *above* the Y axis.
882
+
// n = The number of points to return in the path. Default: 100
883
+
// ---
884
+
// angle = If given, specifies the angle that the path will droop by at the endpoints. If given a negative value, returns an arch *above* the Y axis.
885
+
// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). (Module only) Default: `CENTER`
886
+
// spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). (Module only) Default: `0`
0 commit comments