2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe;
7 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
8 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.Line;
9 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance;
10 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape;
12 public class WireframeDrawing extends AbstractCompositeShape {
14 final private LineAppearance lineAppearance;
17 public WireframeDrawing(final LineAppearance lineAppearance) {
19 this.lineAppearance = lineAppearance;
22 public void addPoint(final Point3D point3d) {
23 if (currentPoint != null) {
24 final Line line = lineAppearance.getLine(currentPoint, point3d);
28 currentPoint = new Point3D(point3d);