本文整理匯總了Python中zeobuilder.actions.composed.Parameters.connect_description1方法的典型用法代碼示例。如果您正苦於以下問題:Python Parameters.connect_description1方法的具體用法?Python Parameters.connect_description1怎麽用?Python Parameters.connect_description1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類zeobuilder.actions.composed.Parameters
的用法示例。
在下文中一共展示了Parameters.connect_description1方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: default_parameters
# 需要導入模塊: from zeobuilder.actions.composed import Parameters [as 別名]
# 或者: from zeobuilder.actions.composed.Parameters import connect_description1 [as 別名]
def default_parameters(cls):
rotation2 = Rotation.from_properties(0.0, [1, 0, 0], False)
result = Parameters()
result.connect_description1 = (Expression("True"), Expression("node.get_radius()"))
result.repulse_description1 = (Expression("True"), Expression("node.get_radius()"))
result.connect_description2 = (Expression("True"), Expression("node.get_radius()"))
result.repulse_description2 = (Expression("True"), Expression("node.get_radius()"))
result.action_radius = 7*angstrom
result.distance_tolerance = 0.1*angstrom
result.hit_tolerance = 0.1*angstrom
result.allow_inversions = True
result.minimum_triangle_size = 0.1*angstrom
result.rotation_tolerance = 0.05
result.rotation2 = Undefined(rotation2)
return result