你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Added rotate method.
这个提交包含在:
@@ -63,6 +63,9 @@ class UserObjectMulti:
|
|||||||
"""Create the object and add it to the grid."""
|
"""Create the object and add it to the grid."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def rotate(self, axis, angle):
|
||||||
|
pass
|
||||||
|
|
||||||
def params_str(self):
|
def params_str(self):
|
||||||
"""Readble string of parameters given to object."""
|
"""Readble string of parameters given to object."""
|
||||||
return self.hash + ': ' + str(self.kwargs)
|
return self.hash + ': ' + str(self.kwargs)
|
||||||
@@ -549,7 +552,7 @@ class Rx(UserObjectMulti):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
r.ID = self.kwargs['id']
|
r.ID = self.kwargs['id']
|
||||||
outputs = [self.kwargs['outputs']]
|
outputs = self.kwargs['outputs']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# If no ID or outputs are specified, use default
|
# If no ID or outputs are specified, use default
|
||||||
r.ID = r.__class__.__name__ + '(' + str(r.xcoord) + ',' + str(r.ycoord) + ',' + str(r.zcoord) + ')'
|
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):
|
def create(self, grid, uip):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def rotate(self, axis, angle):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Title(UserObjectSingle):
|
class Title(UserObjectSingle):
|
||||||
"""Allows you to include a title for your model.
|
"""Allows you to include a title for your model.
|
||||||
|
在新工单中引用
屏蔽一个用户