Moved conditional code into block where it is needed. JIRA: MATH-609.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2011-07-11 00:55:38 +00:00
parent abb29ca5c3
commit fb8fcf184e
1 changed files with 2 additions and 2 deletions

View File

@ -163,11 +163,11 @@ public class OutlineExtractor {
final AbstractSubHyperplane<Euclidean3D, Euclidean2D> absFacet =
(AbstractSubHyperplane<Euclidean3D, Euclidean2D>) facet;
final Plane plane = (Plane) facet.getHyperplane();
Vector2D[][] vertices =
((PolygonsSet) absFacet.getRemainingRegion()).getVertices();
final double scal = Vector3D.dotProduct(plane.getNormal(), w);
if (FastMath.abs(scal) > 1.0e-3) {
Vector2D[][] vertices =
((PolygonsSet) absFacet.getRemainingRegion()).getVertices();
if ((scal < 0) ^ reversed) {
// the facet is seen from the inside,