home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
sandy
/
primitive
/
Line3D.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
1KB
|
39 lines
class sandy.primitive.Line3D extends sandy.core.Object3D implements sandy.primitive.Primitive3D
{
function Line3D(deb, fin)
{
super();
if(arguments.length < 2)
{
trace("Line3D::Number of arguments to low");
}
else
{
var _loc4_ = 0;
while(_loc4_ < arguments.length)
{
this.aPoints.push(new sandy.core.data.Vertex(arguments[_loc4_].x,- arguments[_loc4_].y,arguments[_loc4_].z));
_loc4_ = _loc4_ + 1;
}
this.generate();
}
}
function generate(Void)
{
this._aFaces = [];
var _loc3_ = this.aPoints.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_ - 1)
{
this.addFace(new sandy.core.face.Edge3D(this,this.aPoints[_loc2_],this.aPoints[_loc2_ + 1]));
_loc2_ = _loc2_ + 1;
}
}
function setSkin(s, bOverWrite)
{
bOverWrite = bOverWrite != undefined ? bOverWrite : false;
super.setSkin(s,bOverWrite);
return true;
}
}