diff options
Diffstat (limited to 'graphics/asymptote/flatguide.h')
-rw-r--r-- | graphics/asymptote/flatguide.h | 18 |
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(); |