X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Fraster%2Fshapes%2FAbstractCoordinateShape.java;h=d1117f4b755f0d2caacde95e0b951193651db63a;hp=ed5c3640551263fda373c5fe5a01243c74e96c57;hb=59baa428fb2d9e7f0fe5423f4cea47f2d6245914;hpb=dcdff57f0bab42387b2e4e215778d9e8efc60221 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java index ed5c364..d1117f4 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/AbstractCoordinateShape.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine. Copyright ©2012-2019, 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 @@ -9,10 +9,10 @@ package eu.svjatoslav.sixth.e3d.renderer.raster.shapes; -import eu.svjatoslav.sixth.e3d.geometry.GeometryCoordinate; import eu.svjatoslav.sixth.e3d.geometry.Point3D; -import eu.svjatoslav.sixth.e3d.geometry.TransformPipe; import eu.svjatoslav.sixth.e3d.gui.RenderingContext; +import eu.svjatoslav.sixth.e3d.math.GeometryCoordinate; +import eu.svjatoslav.sixth.e3d.math.TransformPipe; import eu.svjatoslav.sixth.e3d.renderer.raster.RenderAggregator; import java.util.concurrent.atomic.AtomicInteger; @@ -21,8 +21,8 @@ public abstract class AbstractCoordinateShape extends AbstractShape { public static final AtomicInteger lastShapeId = new AtomicInteger(); public final int shapeId; + public final GeometryCoordinate[] coordinates; public double onScreenZ; - public GeometryCoordinate[] coordinates; public AbstractCoordinateShape(final int pointsCount) { coordinates = new GeometryCoordinate[pointsCount]; @@ -60,7 +60,7 @@ public abstract class AbstractCoordinateShape extends AbstractShape { accumulatedZ += geometryPoint.transformedCoordinate.z; - if (!geometryPoint.transformedCoordinate.withinDrawingLimits()) + if (!geometryPoint.transformedCoordinate.isVisible()) paint = false; }