summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath3.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-10-02 20:54:28 +0000
committerKarl Berry <karl@freefriends.org>2009-10-02 20:54:28 +0000
commit42f3026da4fb6ba350f688a92a783b868725c780 (patch)
tree594d732a4a023cb8aa54c8bc800a891de9d272c9 /Build/source/utils/asymptote/drawpath3.cc
parentd48f0a35d1c944862c741b864aba469b2daf41f0 (diff)
asy 1.88
git-svn-id: svn://tug.org/texlive/trunk@15588 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.cc')
-rw-r--r--Build/source/utils/asymptote/drawpath3.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.cc b/Build/source/utils/asymptote/drawpath3.cc
index 2586f4b9472..41a280d2f25 100644
--- a/Build/source/utils/asymptote/drawpath3.cc
+++ b/Build/source/utils/asymptote/drawpath3.cc
@@ -10,18 +10,30 @@ namespace camp {
using vm::array;
-bool drawPath3::write(prcfile *out)
+bool drawPath3::write(prcfile *out, unsigned int *count, array *, array *)
{
Int n=g.length();
if(n == 0 || invisible)
return true;
+ ostringstream buf;
+
if(straight) {
+ if(name == "")
+ buf << "line-" << count[LINE]++;
+ else
+ buf << name;
+
controls=new Triple[n+1];
for(Int i=0; i <= n; ++i)
store(controls[i],g.point(i));
out->add(new PRCline(out,n+1,controls,color,scale3D,name.c_str()));
} else {
+ if(name == "")
+ buf << "curve-" << count[CURVE]++;
+ else
+ buf << name;
+
int m=3*n+1;
controls=new Triple[m];
store(controls[0],g.point((Int) 0));