geomerative 1.0.2-java → 1.1.0-java
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 +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +3 -0
- data/README.md +2 -1
- data/geomerative.gemspec +2 -3
- data/lib/geomerative/version.rb +1 -1
- data/pom.rb +2 -2
- data/pom.xml +2 -2
- data/src/geomerative/RGeomElem.java +12 -14
- data/src/geomerative/RShape.java +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7049f939d3a7ad53e78332318b256d825ae16aa1a035d11314dcf225249ae3ef
|
4
|
+
data.tar.gz: 04ff4522150b547ef03fdb17b1d6842aa793c20d525b9b289a4b76e261f56701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1421d87cfa98aa140aaf95a2094239b7f77a040c040c6f47f14c5c488a6be990f19f74288840165ec67b54cf0b9f2b8306db32e9524ab32b55cc3644a24fc82
|
7
|
+
data.tar.gz: 3073fc69e6df96d01c8fb46347e0524e11eab3509dde45b70a070a49d556ee4412029ab330f8c917ed6448d49f6fa6b202baaef6564fdb9508fbdc567f5650a8
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
### version-1.1
|
2
|
+
Bump versions processing-3.4 (changes to smooth) , jruby-9.2.1.0. Fix `contains(RRoints[])` then rename to `containsPoints` and similarly `contains(RGeomElement shp)` to `containsShape(RShape shp)` in this respect we are deviating for original geomerative library that was flawed (and overloading `contains` method way too much).
|
3
|
+
|
1
4
|
### version-1.0.2
|
2
5
|
Bump versions processing-3.3.7 (changes to smooth) , jruby-9.1.17.0
|
3
6
|
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](https://badge.fury.io/rb/geomerative)
|
4
4
|

|
5
5
|
|
6
|
-
Gem wrapper for [Ricard Marxer Geomerative library][] for [JRubyArt][jruby_art]
|
6
|
+
Gem wrapper for [Ricard Marxer Geomerative library][] for [JRubyArt][jruby_art], [propane][propane] and [PiCrate][picrate]
|
7
7
|
Create amazing stuff with fonts svg etc.
|
8
8
|
|
9
9
|
Read more about using the gem on the linked [web pages].
|
@@ -13,3 +13,4 @@ Read more about using the gem on the linked [web pages].
|
|
13
13
|
[Ricard Marxer Geomerative library]:https://github.com/rikrd/geomerative
|
14
14
|
[jruby_art]:https://ruby-processing.github.io/JRubyArt/
|
15
15
|
[propane]:https://ruby-processing.github.io/propane/
|
16
|
+
[picrate]:https://ruby-processing.github.io/PiCrate/
|
data/geomerative.gemspec
CHANGED
@@ -6,12 +6,11 @@ require 'geomerative/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'geomerative'
|
8
8
|
spec.version = Geomerative::VERSION
|
9
|
-
spec.has_rdoc = true
|
10
9
|
spec.extra_rdoc_files = %w{README.md LICENSE.md}
|
11
10
|
spec.summary = %q{Updated geomerative library for JRubyArt}
|
12
11
|
spec.description =<<-EOS
|
13
12
|
Geomerative java library wrapped in a rubygem. Updated to use String switch
|
14
|
-
etc available since jdk8.
|
13
|
+
etc available since jdk8, and somewhat hacked see CHANGELOG.
|
15
14
|
EOS
|
16
15
|
spec.licenses = %w{Apache-2.0 AGPL-3.0}
|
17
16
|
spec.authors = %w{Ricard\ Marxer Martin\ Prout}
|
@@ -25,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
25
24
|
spec.platform = 'java'
|
26
25
|
spec.requirements << 'A decent graphics card'
|
27
26
|
spec.requirements << 'java runtime >= 1.8+'
|
28
|
-
spec.requirements << 'processing = 3.
|
27
|
+
spec.requirements << 'processing = 3.4+'
|
29
28
|
end
|
data/lib/geomerative/version.rb
CHANGED
data/pom.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
project 'geomerative' do
|
2
2
|
|
3
3
|
model_version '4.0.0'
|
4
|
-
id 'ruby-processing:geomerative:1.0
|
4
|
+
id 'ruby-processing:geomerative:1.1.0'
|
5
5
|
packaging 'jar'
|
6
6
|
|
7
7
|
description 'geomerative-library for JRubyArt'
|
@@ -30,7 +30,7 @@ project 'geomerative' do
|
|
30
30
|
|
31
31
|
jar 'org.processing:core:3.3.6'
|
32
32
|
|
33
|
-
plugin( :compiler, '3.
|
33
|
+
plugin( :compiler, '3.8.0',
|
34
34
|
'source' => '${maven.compiler.source}',
|
35
35
|
'target' => '${maven.compiler.target}' )
|
36
36
|
plugin( :jar, '3.0.2',
|
data/pom.xml
CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
11
11
|
<modelVersion>4.0.0</modelVersion>
|
12
12
|
<groupId>ruby-processing</groupId>
|
13
13
|
<artifactId>geomerative</artifactId>
|
14
|
-
<version>1.0
|
14
|
+
<version>1.1.0</version>
|
15
15
|
<name>geomerative</name>
|
16
16
|
<description>geomerative-library for JRubyArt</description>
|
17
17
|
<organization>
|
@@ -63,7 +63,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
63
63
|
<plugins>
|
64
64
|
<plugin>
|
65
65
|
<artifactId>maven-compiler-plugin</artifactId>
|
66
|
-
<version>3.
|
66
|
+
<version>3.8.0</version>
|
67
67
|
<configuration>
|
68
68
|
<source>${maven.compiler.source}</source>
|
69
69
|
<target>${maven.compiler.target}</target>
|
@@ -17,6 +17,8 @@
|
|
17
17
|
* Geomerative. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
*/
|
19
19
|
package geomerative;
|
20
|
+
import java.util.Arrays;
|
21
|
+
import java.util.stream.Stream;
|
20
22
|
import processing.core.PApplet;
|
21
23
|
import processing.core.PGraphics;
|
22
24
|
|
@@ -125,8 +127,8 @@ public abstract class RGeomElem {
|
|
125
127
|
* @related containsBounds ( )
|
126
128
|
* @related containsHandles ( )
|
127
129
|
*/
|
128
|
-
public boolean
|
129
|
-
return
|
130
|
+
public boolean containsShape(RShape shp) {
|
131
|
+
return containsPoints(shp.getPoints());
|
130
132
|
}
|
131
133
|
|
132
134
|
/**
|
@@ -165,29 +167,25 @@ public abstract class RGeomElem {
|
|
165
167
|
* @related contains ( )
|
166
168
|
*/
|
167
169
|
public boolean containsHandles(RGeomElem shp) {
|
168
|
-
return
|
170
|
+
return containsPoints(shp.getHandles());
|
169
171
|
}
|
170
172
|
|
171
173
|
/**
|
172
174
|
* Use this method to test if the shape contains an array of points.
|
173
175
|
*
|
174
|
-
* @param
|
176
|
+
* @param pts
|
175
177
|
* @eexample contains
|
176
178
|
* @return boolean, true if the shape contains all the points
|
177
|
-
* @related
|
179
|
+
* @related containsShape ( )
|
178
180
|
* @related containsBounds ( )
|
179
181
|
* @related containsHandles ( )
|
180
182
|
*/
|
181
|
-
public boolean
|
182
|
-
|
183
|
-
|
184
|
-
for (RPoint p : ps) {
|
185
|
-
contains &= this.contains(p);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
return contains;
|
183
|
+
public boolean containsPoints(RPoint[] pts) {
|
184
|
+
Stream<RPoint> outside = Arrays.stream(pts).filter(pt -> !contains(pt));
|
185
|
+
return outside.count() == 0;
|
189
186
|
}
|
190
|
-
|
187
|
+
|
188
|
+
|
191
189
|
/**
|
192
190
|
* Use this method to test if the shape intersects another shape.
|
193
191
|
*
|
data/src/geomerative/RShape.java
CHANGED
@@ -928,10 +928,10 @@ public class RShape extends RGeomElem {
|
|
928
928
|
}
|
929
929
|
RPoint[] verts = pointpaths[0];
|
930
930
|
for (int k = 1; k < pointpaths.length; k++) {
|
931
|
-
verts = (RPoint[]) PApplet.append(verts, new RPoint(
|
931
|
+
verts = (RPoint[]) PApplet.append(verts, new RPoint());
|
932
932
|
verts = (RPoint[]) PApplet.concat(verts, pointpaths[k]);
|
933
933
|
}
|
934
|
-
verts = (RPoint[]) PApplet.append(verts, new RPoint(
|
934
|
+
verts = (RPoint[]) PApplet.append(verts, new RPoint());
|
935
935
|
if (verts == null) {
|
936
936
|
return false;
|
937
937
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geomerative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Ricard Marxer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
version: '12.3'
|
28
28
|
description: |2
|
29
29
|
Geomerative java library wrapped in a rubygem. Updated to use String switch
|
30
|
-
etc available since jdk8.
|
30
|
+
etc available since jdk8, and somewhat hacked see CHANGELOG.
|
31
31
|
email: mamba2928@yahoo.co.uk
|
32
32
|
executables: []
|
33
33
|
extensions: []
|
@@ -218,9 +218,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
requirements:
|
219
219
|
- A decent graphics card
|
220
220
|
- java runtime >= 1.8+
|
221
|
-
- processing = 3.
|
221
|
+
- processing = 3.4+
|
222
222
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.7.
|
223
|
+
rubygems_version: 2.7.7
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Updated geomerative library for JRubyArt
|