Author Topic: select_inside_sphere  (Read 315 times)

kiprian

  • Newbie
  • *
  • Posts: 2
    • View Profile
select_inside_sphere
« on: March 31, 2017, 09:32:03 AM »
Code: [Select]
(bHit, hitFrame) = mm.find_ray_hit(r, ray_origin, ray_dir)
        print hitFrame.origin
       
        if bHit:
            mm.select_inside_sphere(r, hitFrame.origin, 10)
            print mm.list_selected_triangles(r)

List is always empty.
Could somebody please tell why mm.select_inside_sphere selects nothing in this example?
Sphere radius could be any from 0.1 to 100.