Added rotate method.

这个提交包含在:
craig-warren
2020-05-12 12:33:37 +01:00
父节点 f5e44dbdab
当前提交 cdf649e50a
共有 2 个文件被更改,包括 7 次插入1 次删除

查看文件

@@ -63,6 +63,9 @@ class UserObjectMulti:
"""Create the object and add it to the grid."""
pass
def rotate(self, axis, angle):
pass
def params_str(self):
"""Readble string of parameters given to object."""
return self.hash + ': ' + str(self.kwargs)
@@ -549,7 +552,7 @@ class Rx(UserObjectMulti):
try:
r.ID = self.kwargs['id']
outputs = [self.kwargs['outputs']]
outputs = self.kwargs['outputs']
except KeyError:
# If no ID or outputs are specified, use default
r.ID = r.__class__.__name__ + '(' + str(r.xcoord) + ',' + str(r.ycoord) + ',' + str(r.zcoord) + ')'

查看文件

@@ -55,6 +55,9 @@ class UserObjectSingle:
def create(self, grid, uip):
pass
def rotate(self, axis, angle):
pass
class Title(UserObjectSingle):
"""Allows you to include a title for your model.