commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Jensen <curtis.jen...@gmail.com>
Subject [math] Union Produces In-Line Vertex
Date Mon, 29 Jul 2013 21:37:18 GMT
The 2D Euclidean union function sometimes produces an extra, in-line, vertex.

For example, in the "testUnion" function in the
org.apache.commons.math3.geometry.euclidean.twod.PolygonsSetTest, the
"set" produced by the union of "set1" and "set2" has 9 vertices. I
believe that there should only be 8.  The extra vertex is 3,2; which
is in-line between the vertices 3,1 and 3,3.

The overall shape of the union is correct; however, there is a vertex
that really is not a vertex (an intersection of two distinct line
segments).

Is this the intended behavior or perhaps a bug?

Thanks,
Curtis

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message