summaryrefslogtreecommitdiff
path: root/tikzit/src/common/RegularPolyShape.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-23 17:39:58 +0100
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-23 17:39:58 +0100
commit5dcbea7d268bf1be9548226665bce6a24e2e9d55 (patch)
treea317534bb0682eb53621c2a163bb776a2851b7c7 /tikzit/src/common/RegularPolyShape.m
parent33a1af9afed49f43f3577acb213ab0469035730f (diff)
Start fixing shapes in the preamble
RegularPolyShape needs fixing still, and the tikz shapes need sorting out.
Diffstat (limited to 'tikzit/src/common/RegularPolyShape.m')
-rw-r--r--tikzit/src/common/RegularPolyShape.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/tikzit/src/common/RegularPolyShape.m b/tikzit/src/common/RegularPolyShape.m
index cd5858c..e5aac7a 100644
--- a/tikzit/src/common/RegularPolyShape.m
+++ b/tikzit/src/common/RegularPolyShape.m
@@ -60,8 +60,14 @@
[edges addObject:[Edge edgeWithSource:[nodes objectAtIndex:i]
andTarget:[nodes objectAtIndex:(i+1)%sides]]];
}
-
+
paths = [[NSSet alloc] initWithObjects:edges,nil];
+
+ int degRot = (int)radiansToDegrees(rotation);
+ styleTikz = [[NSString alloc] initWithFormat:
+ @"regular polygon,regular polygon sides=%d,shape border rotate=%d",
+ sides, degRot];
+
return self;
}