ofPath to ofPolyline

How can i convert an ofPath to a vector of ofPolyline???

  
  
path.getOutline()  
  

but will only work if the path really has an outline, ie: strokeWidth>0