X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Fraster%2Fshapes%2Fbasic%2Fsolidpolygon%2FSolidPolygon.java;h=1b4bcfcae481236fc11c07635cf69178cd8bfb26;hb=a2131986d65a769e3d589e4e0370d4af0ce10c38;hp=39177bb8f0d4b041f3e2e403f6f9d156d4784a6a;hpb=6b39de1e9e80433b78ae731845551e742718d613;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/solidpolygon/SolidPolygon.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/solidpolygon/SolidPolygon.java index 39177bb..1b4bcfc 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/solidpolygon/SolidPolygon.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/solidpolygon/SolidPolygon.java @@ -1,12 +1,7 @@ /* - * Sixth 3D engine. Copyright ©2012-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 3 of the GNU Lesser General Public License - * or later as published by the Free Software Foundation. - * + * Sixth 3D engine. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. */ - package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.solidpolygon; import eu.svjatoslav.sixth.e3d.geometry.Point2D; @@ -18,6 +13,9 @@ import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractCoordinateShape; import static eu.svjatoslav.sixth.e3d.geometry.Polygon.pointWithinPolygon; +/** + * polygon with solid color. + */ public class SolidPolygon extends AbstractCoordinateShape { private final static LineInterpolator polygonBoundary1 = new LineInterpolator(); @@ -107,7 +105,7 @@ public class SolidPolygon extends AbstractCoordinateShape { if (context.getMouseEvent() != null) if (pointWithinPolygon(context.getMouseEvent().coordinate, onScreenPoint1, onScreenPoint2, onScreenPoint3)) - context.setObjectUnderMouse(mouseInteractionController); + context.setCurrentObjectUnderMouseCursor(mouseInteractionController); if (color.isTransparent()) return;