speckle_connector/converter/to_speckle.rb
# get a flat array of face indices from a sketchup face
get a flat array of face indices from a sketchup face
get a flat array of face indices from a sketchup face
def face_indices_to_array(face, offset)
    face_array = [face.vertices.count]
    face_array.push(*face.vertices.count.times.map { |index| index + offset })
    face_array
  end
def face_indices_to_array ( face , offset ) face_array = [ face . vertices . count ] face_array . push ( * face . vertices . count . times . map { | index | index + offset } ) face_array end
get a flat array of face indices from a sketchup face
get a flat array of face indices from a sketchup face
face
offset