def make_geometry_rtss_list(): oposit_cargo = make_geometry_oposit() sample_cargo = unit.make() lo = IceRayCpp.MathTypeCoord3D() lo[0] = -3 lo[1] = -3 lo[2] = -1.1 hi = IceRayCpp.MathTypeCoord3D() hi[0] = 3 hi[1] = 3 hi[2] = -1 box = IceRayCpp.GeometrySimpleBox(lo, hi) list = IceRayCpp.GeometryRTSSList() geometry = IceRayCpp.GeometryRTSSGeometry() geometry.rtss(list) geometry.push(sample_cargo['this']) geometry.push(box) return { 'this': geometry, '-1': list, '1': sample_cargo, '2': 'box', '3': oposit_cargo }
def make_geometry_rtss_list(): # P_center, P_radius sample_cargo = unit.make() lo = IceRayCpp.MathTypeCoord3D() lo[0] = -3 lo[1] = -3 lo[2] = -0.1 hi = IceRayCpp.MathTypeCoord3D() hi[0] = 3 hi[1] = 3 hi[2] = 0 box = IceRayCpp.GeometrySimpleBox(lo, hi) list = IceRayCpp.GeometryRTSSList() geometry = IceRayCpp.GeometryRTSSGeometry() geometry.rtss(list) translate = IceRayCpp.GeometryTransformTranslate() translate.child(sample_cargo['this']) translate.move(IceRayCpp.MathTypeCoord3D().load(0.5, -0.5, 0.5)) geometry.push(translate) geometry.push(box) return { 'this': geometry, '-1': list, '1': sample_cargo, '2': box, '3': translate }
def make_object( ): object = IceRayCpp.CoreObject() cargo_geometry = unit.make() object.geometry( cargo_geometry['this'] ) cargo_surface = make_surface( ) object.surface( cargo_surface['this'] ) return { 'this' : object, 'geometry':cargo_geometry, 'surface': cargo_surface }
def make_geometry_rtss_list(): # P_center, P_radius sample_cargo = unit.make() lo = IceRayCpp.MathTypeCoord3D(123) lo[0] = -3 lo[1] = -3 lo[2] = -0.1 hi = IceRayCpp.MathTypeCoord3D(123) hi[0] = 3 hi[1] = 3 hi[2] = 0 box = IceRayCpp.GeometrySimpleBox(lo, hi) list = IceRayCpp.GeometryRTSSList() geometry = IceRayCpp.GeometryRTSSGeometry() geometry.rtss(list) geometry.push(sample_cargo['this']) geometry.push(box) return {'this': geometry, '-1': list, '1': sample_cargo, '2': box}