def Cone(pos=(0, 0, 0), r=1, height=3, axis=(0, 0, 1), c="dg", alpha=1, res=48):
    """
    Build a cone of specified radius `r` and `height`, centered at `pos`.
    
    |Cone|
    """
    con = vtk.vtkConeSource()
    con.SetResolution(res)
    con.SetRadius(r)
    con.SetHeight(height)
    con.SetDirection(axis)
    con.Update()
    actor = Actor(con.GetOutput(), c, alpha)
    actor.GetProperty().SetInterpolationToPhong()
    actor.SetPosition(pos)
    v = utils.versor(axis) * height / 2
    actor.base = pos - v
    actor.top = pos + v
    settings.collectable_actors.append(actor)
    return actor
def Cone ( pos = ( 0 , 0 , 0 ) , r = 1 , height = 3 , axis = ( 0 , 0 , 1 ) , c = "dg" , alpha = 1 , res = 48 ) : con = vtk . vtkConeSource ( ) con . SetResolution ( res ) con . SetRadius ( r ) con . SetHeight ( height ) con . SetDirection ( axis ) con . Update ( ) actor = Actor ( con . GetOutput ( ) , c , alpha ) actor . GetProperty ( ) . SetInterpolationToPhong ( ) actor . SetPosition ( pos ) v = utils . versor ( axis ) * height / 2 actor . base = pos - v actor . top = pos + v settings . collectable_actors . append ( actor ) return actor
Build a cone of specified radius `r` and `height`, centered at `pos`.
    
    |Cone|