示例#1
0
 def fn():
     context.application.model.file_open("test/input/core_objects.zml")
     context.application.main.toggle_selection(context.application.model.universe.children[3], on=True)
     parameters = Parameters()
     parameters.center = numpy.array([1.0, 0.2, -0.9], float)
     parameters.normal = numpy.array([2.0, 4.1, -1.0], float)
     ReflectionDialog = context.application.plugins.get_action("ReflectionDialog")
     assert ReflectionDialog.analyze_selection(parameters)
     ReflectionDialog(parameters)
示例#2
0
 def default_parameters(cls):
     result = Parameters()
     result.center = numpy.zeros(3, float)
     result.normal = numpy.zeros(3, float)
     return result
示例#3
0
 def default_parameters(cls):
     result = Parameters()
     result.center = numpy.zeros(3, float)
     result.normal = numpy.zeros(3, float)
     return result