aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/geom/Outline.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-03-15 07:02:35 +0100
committerSven Gothel <[email protected]>2014-03-15 07:02:35 +0100
commit0b61e9a2641e38475a330303e49f6becf99158e1 (patch)
tree4d4bd7ead74950ce7df84d184519873bd83bf660 /src/jogl/classes/com/jogamp/graph/geom/Outline.java
parente4641e304fbc64a5d185a39c6ca6357cc678e013 (diff)
Bug 801: Remove Vertex.Factory from AffineTransform ; Add AABBox tranformed resize.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/geom/Outline.java')
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Outline.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Outline.java b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
index b299524c0..5f6dd028f 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Outline.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
@@ -87,7 +87,7 @@ public class Outline implements Cloneable, Comparable<Outline> {
}
vertices.add(position, vertex);
if(!dirtyBBox) {
- bbox.resize(vertex.getX(), vertex.getY(), vertex.getZ());
+ bbox.resize(vertex.getCoord());
}
}
@@ -187,12 +187,12 @@ public class Outline implements Cloneable, Comparable<Outline> {
/**
* Return a transformed instance with all vertices are copied and transformed.
*/
- public final Outline transform(AffineTransform t) {
+ public final Outline transform(final AffineTransform t, final Vertex.Factory<? extends Vertex> vertexFactory) {
final Outline newOutline = new Outline();
final int vsize = vertices.size();
for(int i=0; i<vsize; i++) {
final Vertex v = vertices.get(i);
- newOutline.addVertex(t.transform(v, null));
+ newOutline.addVertex(t.transform(v, vertexFactory.create()));
}
newOutline.closed = this.closed;
return newOutline;
@@ -202,7 +202,7 @@ public class Outline implements Cloneable, Comparable<Outline> {
dirtyBBox = false;
bbox.reset();
for (int i=0; i<vertices.size(); i++) {
- bbox.resize(vertices.get(i).getCoord(), 0);
+ bbox.resize(vertices.get(i).getCoord());
}
}