speckle_connector/converter/to_speckle.rb
def edge_to_speckle(edge)
    {
      speckle_type: "Objects.Geometry.Line",
      applicationId: edge.persistent_id.to_s,
      units: @units,
      start: vertex_to_speckle(edge.start),
      end: vertex_to_speckle(edge.end),
      domain: speckle_interval(0, Float(edge.length)),
      bbox: bounds_to_speckle(edge.bounds)
    }
  end
# convert an edge to a speckle line
convert an edge to a speckle line
convert an edge to a speckle line
def edge_to_speckle(edge)
    {
      speckle_type: "Objects.Geometry.Line",
      applicationId: edge.persistent_id.to_s,
      units: @units,
      start: vertex_to_speckle(edge.start),
      end: vertex_to_speckle(edge.end),
      domain: speckle_interval(0, Float(edge.length)),
      bbox: bounds_to_speckle(edge.bounds)
    }
  end
def edge_to_speckle ( edge ) { speckle_type : "Objects.Geometry.Line" , applicationId : edge . persistent_id . to_s , units : @units , start : vertex_to_speckle ( edge . start ) , end : vertex_to_speckle ( edge . end ) , domain : speckle_interval ( 0 , Float ( edge . length ) ) , bbox : bounds_to_speckle ( edge . bounds ) } end
convert an edge to a speckle line
convert an edge to a speckle line
edge