Nurbs???

Software: Away3D 4.x

drbii, Member
Posted: 18 August 2014 03:23 PM   Total Posts: 72

Anybody have a good, working example of Nurbs in 4.1?

I keep getting out of range errors, even when using the few examples I have found.

var controlNet:Vector.<NURBSVertex> = new Vector.<NURBSVertex>( [

    
new NURBSVertex( -300, -100, -3001),
    new 
NURBSVertex( -300, -100, -1501),
    new 
NURBSVertex( -300, -10001),
    new 
NURBSVertex( -300, -1001501),
    
    new 
NURBSVertex( -150, -100, -3001),
    new 
NURBSVertex( -150, -100, -1501),
    new 
NURBSVertex( -150, -10001),
    new 
NURBSVertex( -150, -1001501),
    
    new 
NURBSVertex0, -100, -3001),
    new 
NURBSVertex0, -100, -1501),
    new 
NURBSVertex0, -10001),
    new 
NURBSVertex0, -1001501),
    
    new 
NURBSVertex150, -100, -3001),
    new 
NURBSVertex150, -100, -1501),
    new 
NURBSVertex150, -10001),
    new 
NURBSVertex150, -1001501));
   
   var 
nurb:NURBSGeometry = new NURBSGeometrycontrolNet44441515 );

   
meshObject = new Mesh(nurbpedscrew_thread_material);

   
nurb.refreshNURBS();
   
away3dView.scene.addChild(meshObject); 

 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X