summaryrefslogtreecommitdiff
path: root/graphics/asymptote/flatguide.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/flatguide.h
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/flatguide.h')
-rw-r--r--graphics/asymptote/flatguide.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/graphics/asymptote/flatguide.h b/graphics/asymptote/flatguide.h
index c4d5c9bce6..e960f1f868 100644
--- a/graphics/asymptote/flatguide.h
+++ b/graphics/asymptote/flatguide.h
@@ -26,11 +26,11 @@ class flatguide
// into a path again. In the (usual) case that a cycle ends a path, the
// cached path avoids this second pass.
bool solved;
-
+
// Used by reverse(guide) to indicate the presence of an unresolved
// interior cycle.
bool precycle;
-
+
path p;
cvector<knot> nodes;
@@ -97,7 +97,7 @@ class flatguide
clearPath();
}
}
-
+
public:
flatguide()
: solved(true), precycle(false), p(), out(&open), in(&open) {}
@@ -105,11 +105,11 @@ public:
Int size() const {
return (Int) nodes.size();
}
-
+
knot Nodes(Int i) const {
return nodes[i];
}
-
+
void setTension(tension t, side s) {
update();
tref(s)=t;
@@ -152,20 +152,20 @@ public:
nodes.front().tin=tin;
}
}
-
+
void resolvecycle() {
if(!nodes.empty())
nodes.push_back(nodes.front());
}
-
+
void precyclic(bool b) {
precycle=b;
}
-
+
bool precyclic() {
return precycle;
}
-
+
// Once all information has been added, release the flat result.
simpleknotlist list(bool cycles=false) {
if(cycles && !nodes.empty()) close();