本文整理汇总了Python中System.propagate方法的典型用法代码示例。如果您正苦于以下问题:Python System.propagate方法的具体用法?Python System.propagate怎么用?Python System.propagate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System.propagate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: sphericalReflector
# 需要导入模块: import System [as 别名]
# 或者: from System import propagate [as 别名]
def sphericalReflector() :
# source
ppos = [0,0,0]
pdir = [0,0,1]
s0 = Source("light source",Placement(ppos,pdir))
s0.exampleRays(0.04)
# spherical reflector
ppos = [0,0,0.20]
pdir = [0,0,1]
pdim = [0.05,0.05,0.01]
sr = SphericalSurface("spherical", Volume.circ,pdim,Placement(ppos,pdir),Material(Material.mirror,1.0),-0.10)
# plane stop
ppos = [0,0,0.1]
pdir = [0,0,-1]
pdim = [0.05,0.05,0.01]
ss = PlaneSurface("stop",Volume.circ,pdim,Placement(ppos,pdir),Material(Material.refract,1.0))
s = System()
s.append(s0)
s.append(sr)
s.append(ss)
r = s.propagate()
d = Display3D.Display3D(s,r)
d.Draw()