Sha256: 1243ae8d007160d8460042ef026b0ae5faf1e6476d322269ee86cfb03b2a391c
Contents?: true
Size: 278 Bytes
Versions: 1
Compression:
Stored size: 278 Bytes
Contents
require "bundler/setup" require "triangular" solid = Triangular.parse_file("#{File.dirname(__FILE__)}/example_files/y-axis-spacer.stl") polyline = solid.slice_at_z(-0.5) File.open(File.expand_path("~/Desktop/slice.svg"), "w+") do |file| file.puts polyline.to_svg(10, 10) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
triangular-0.0.1 | examples/slice_example.rb |