[Papervision3D] Lines3D Bug?
Jason Jensen
flash_developer at comcast.net
Sat May 9 13:12:48 PDT 2009
Hello everyone,
When I add lines to my Lines3D object using the addLine() and addNewLine()
methods, I can check to verify the number of lines added by looking at the
length of the 'lines' property(an array). But when I add lines to my
Lines3D object using addNewSegmentedLine(), the length of the lines array
property is one more than the number of segments that I specified in the
method parameter.
This method call...
<code>
var lineSize:Number = 10;
var lineSegments:Number = 50;
_lines3DContainer.addNewSegmentedLine(lineSize, lineSegments, v0.x, v0.y,
v0.z, v1.x, v1.y, v1.z);
trace("lines length: " + _lines3DContainer.lines.length);
</code>
...traces out "lines length: 51".
I noticed this while attempting to change the LineMaterial of the the first
segment. Everything works fine when using addLine() and addNewLine() but I
can't access the first line3D object when using
addNewSegmentedLine()(Lines3D.lines[0]...) and
_lines3DContainer.lines.length is one more then I specified.
Before I dive deeper into the code... is this a bug?
I'm using rev. 910, the latest... I think.
Thanks!
--
View this message in context: http://www.nabble.com/Lines3D-Bug--tp23464216p23464216.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list