radmesh 0.98.2 → 0.98.3
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.
- checksums.yaml +8 -8
- data/lib/radmesh/stl.rb +7 -7
- data/lib/radmesh/version.rb +1 -1
- data/radmesh.gemspec +4 -3
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWNjYTJhYjlmY2ZiMDk1ZmJjZGIxMWI4MDExN2RmOGE1YzZkOThjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjBmZmQ0Y2NhNzM2MDgwMGE3YTE0YTNjNTBlMDVkNTQ4NzA1ZjMzNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzM0NjFjNDZiMTcwY2JjNjY4OTBjMGNhZmJhZjZlZTYwNGQyNGI0ZGM4MWEw
|
10
|
+
OTlmZWYwY2FkMzJhM2UyODNlZjJiNjZhOGY5YWE3ZDk0ZDY0OTg2ZDI2ZjMz
|
11
|
+
N2RhYjlhODlmYjM0ZTUzMTBhNDM2MjRhOWU2OWJiY2M2MDU4NjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODQ3YjNiOGZiN2QwZTYzY2NmNTAzYmJkOTc0ZTYzODIzODFlN2MyNWM2NmM0
|
14
|
+
ZjAyM2VkYTA2ODI1NTlkZGQzZGYyZDIzNmNkYmJiNGExN2MwODYzMTNjZjM5
|
15
|
+
ZmZjYjY0MzI1NzEzODMzZmU0ZDIxYmNhZWVhMGIyNDVjMGY1MTg=
|
data/lib/radmesh/stl.rb
CHANGED
@@ -72,7 +72,7 @@ module RADMesh
|
|
72
72
|
proc do
|
73
73
|
if error?
|
74
74
|
clear_error!
|
75
|
-
|
75
|
+
raise exception, message
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
@@ -337,8 +337,8 @@ module RADMesh
|
|
337
337
|
elsif args.size == 1
|
338
338
|
vec = to_vec(args[0], default)
|
339
339
|
else
|
340
|
-
|
341
|
-
|
340
|
+
raise ArgumentError,
|
341
|
+
"wrong number of arguments (#{args.size} for 1 or 3)"
|
342
342
|
end
|
343
343
|
vec
|
344
344
|
end
|
@@ -518,8 +518,8 @@ module RADMesh
|
|
518
518
|
# the arguments could not be parsed
|
519
519
|
def mirror!(*args)
|
520
520
|
args = args[0] if args.size == 1
|
521
|
-
|
522
|
-
|
521
|
+
raise ArgumentError,
|
522
|
+
"wrong number of arguments (#{args.size} for 2)" if args.size != 2
|
523
523
|
args.sort!
|
524
524
|
begin
|
525
525
|
send("mirror_#{args[0]}#{args[1]}!")
|
@@ -634,8 +634,8 @@ module RADMesh
|
|
634
634
|
#
|
635
635
|
# @return [Hash] hash with the facet data
|
636
636
|
def [](idx)
|
637
|
-
|
638
|
-
|
637
|
+
raise IndexError,
|
638
|
+
"index #{idx} outside of STL bounds: 0..#{size - 1}" if idx >= size
|
639
639
|
ptr = @stl_value[:facet_start].to_ptr + (idx * CADMesh::STLFacet.size)
|
640
640
|
value = CADMesh::STLFacet.new ptr
|
641
641
|
value.to_hash
|
data/lib/radmesh/version.rb
CHANGED
data/radmesh.gemspec
CHANGED
@@ -15,9 +15,10 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.authors = ['Miro Hrončok']
|
16
16
|
s.email = 'miro@hroncok.cz'
|
17
17
|
s.files = Dir.glob('{doc,lib,spec}/**/*') +
|
18
|
-
|
18
|
+
['README.md', 'LICENSE', 'Rakefile', 'Gemfile', __FILE__]
|
19
19
|
s.homepage =
|
20
20
|
'https://github.com/admesh/rubygem-admesh'
|
21
|
-
s.platform
|
22
|
-
s.license
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.license = 'GPL-2.0+'
|
23
|
+
s.add_runtime_dependency 'ffi', '~> 1.9'
|
23
24
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radmesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.98.
|
4
|
+
version: 0.98.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miro Hrončok
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
-
dependencies:
|
11
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ffi
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
13
27
|
description: ! " ADMesh is a library for processing triangulated solid meshes.\n
|
14
28
|
\ Currently, ADMesh only reads the STL file format that is used\n for rapid
|
15
29
|
prototyping applications, although it can write STL,\n VRML, OFF, and DXF files.
|