summaryrefslogtreecommitdiff
path: root/tikzit/src/common/RegularPolyShape.m
diff options
context:
space:
mode:
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;
}