speckle_connector/converter/to_speckle.rb
def face_vertices_to_array(face)
    pts_array = []
    face.vertices.each do |v|
      pt = v.position
      pts_array.push(length_to_speckle(pt[0]), length_to_speckle(pt[1]), length_to_speckle(pt[2]))
    end
    pts_array
  end
# get a flat array of vertices from a list of sketchup vertices
get a flat array of vertices from a list of sketchup vertices
get a flat array of vertices from a list of sketchup vertices
def face_vertices_to_array(face)
    pts_array = []
    face.vertices.each do |v|
      pt = v.position
      pts_array.push(length_to_speckle(pt[0]), length_to_speckle(pt[1]), length_to_speckle(pt[2]))
    end
    pts_array
  end
def face_vertices_to_array ( face ) pts_array = [ ] face . vertices . each do | v | pt = v . position pts_array . push ( length_to_speckle ( pt [ 0 ] ) , length_to_speckle ( pt [ 1 ] ) , length_to_speckle ( pt [ 2 ] ) ) end pts_array end
get a flat array of vertices from a list of sketchup vertices
get a flat array of vertices from a list of sketchup vertices
face