Commit d35ccbb6 authored by Andrey Filippov's avatar Andrey Filippov

completed methods for multithreaded operation

parent 1aa3cc9e
...@@ -36,17 +36,23 @@ public class LwocLeaf { ...@@ -36,17 +36,23 @@ public class LwocLeaf {
scenes = new ArrayList <LwocScene>(); // cameras located in this node scenes = new ArrayList <LwocScene>(); // cameras located in this node
} }
public void addScene(LwocScene scene) { public void addScene(LwocScene scene,
scenes.add(scene); boolean check_existed) {
if (!check_existed || !scenes.contains(scene)) {
scenes.add(scene);
}
} }
public void addMeshCenter(LwocMesh mesh) { public void addMeshCenter(LwocMesh mesh,
mesh_centers.add(mesh); boolean check_existed) {
if (!check_existed || !mesh_centers.contains(mesh)) {
mesh_centers.add(mesh);
}
} }
public void addMesh(LwocMesh mesh, public void addMesh(LwocMesh mesh,
boolean check_existed) { boolean check_existed) {
if (!check_existed || meshes.contains(mesh)) { if (!check_existed || !meshes.contains(mesh)) {
meshes.add(mesh); meshes.add(mesh);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment