Removed unused shapes list from View3D
#story[1196]
This commit is contained in:
@@ -18,12 +18,18 @@ import java.util.List;
|
|||||||
* sky box, whose textures are set with special methods.
|
* sky box, whose textures are set with special methods.
|
||||||
*/
|
*/
|
||||||
public class View3D extends Pane {
|
public class View3D extends Pane {
|
||||||
|
/**
|
||||||
|
* Rendering container for shapes
|
||||||
|
*/
|
||||||
private Group world;
|
private Group world;
|
||||||
private List<Shape3D> shapes;
|
/**
|
||||||
|
* Near limit of view frustum
|
||||||
|
*/
|
||||||
private double nearClip;
|
private double nearClip;
|
||||||
|
/**
|
||||||
|
* Far limit of view frustum
|
||||||
|
*/
|
||||||
private double farClip;
|
private double farClip;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Position camera pivots around
|
* Position camera pivots around
|
||||||
*/
|
*/
|
||||||
@@ -45,7 +51,6 @@ public class View3D extends Pane {
|
|||||||
* Default constructor for View3D. Sets up Scene and PerspectiveCamera.
|
* Default constructor for View3D. Sets up Scene and PerspectiveCamera.
|
||||||
*/
|
*/
|
||||||
public View3D() {
|
public View3D() {
|
||||||
shapes = new ArrayList<>();
|
|
||||||
world = new Group();
|
world = new Group();
|
||||||
|
|
||||||
SubScene scene = new SubScene(world, 300, 300);
|
SubScene scene = new SubScene(world, 300, 300);
|
||||||
@@ -86,7 +91,6 @@ public class View3D extends Pane {
|
|||||||
* @param shape to add
|
* @param shape to add
|
||||||
*/
|
*/
|
||||||
public void addShape(Shape3D shape) {
|
public void addShape(Shape3D shape) {
|
||||||
shapes.add(shape);
|
|
||||||
world.getChildren().add(shape);
|
world.getChildren().add(shape);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user