crystalscad 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -367,7 +367,9 @@ module CrystalScad
367
367
  class Import < Primitive
368
368
  def initialize(filename)
369
369
  @transformations = []
370
- @filename = filename
370
+ # we need to convert relative to absolute paths if the openscad output is not in the same directory
371
+ # as the crystalscad program.
372
+ @filename = File.expand_path(filename)
371
373
  end
372
374
 
373
375
  def to_rubyscad
@@ -156,7 +156,7 @@ module CrystalScad::ScrewThreads
156
156
  bolt.transformations << Translate.new({x:hole.x,y:hole.y,z:hole.z})
157
157
  when "left"
158
158
  bolt.transformations << Rotate.new(y:90)
159
- bolt.transformations << Translate.new({x:hole.x,y:hole.y,z:hole.z+height})
159
+ bolt.transformations << Translate.new({x:hole.x,y:hole.y,z:hole.z})
160
160
  when "right"
161
161
  bolt.transformations << Rotate.new(y:-90)
162
162
  bolt.transformations << Translate.new({x:hole.x+height,y:hole.y,z:hole.z})
@@ -1,4 +1,4 @@
1
1
  module CrystalScad
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystalscad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-16 00:00:00.000000000 Z
12
+ date: 2014-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyscad