Hi there,
I have a network of lines that I'm constructing (about 50-100) in one Lines3D container. Here's my code:
var lines:Lines3D = new Lines3D(relateMaterial);
for (var relationId in list[id].relations) {
var nodeId = list[id].relations[relationId][1];
lines.addNewLine(1, list[id].coords[0],
list[id].coords[1],
list[id].coords[2] - 40,
list[nodeId].coords[0],
list[nodeId].coords[1],
list[nodeId].coords[2] - 40);
}
lvlData.graphs[level].linesReference
When I attempt removing the lines with the following:
for (var i in lvlData.graphs[level].linesReference.lines) {
lvlData.graphs[level].linesReference.removeLine(lvlData.graphs[level].linesReference.lines[i]);
}
view.scene.removeChild(lvlData.graphs[level].linesReference);
Not sure what I might be doing wrong.
Dave
_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org