[duplicate - please remove ] How to deal with new NURBSGeometry class

Software: Away3D 4.x

marlu, Newbie
Posted: 28 June 2013 02:25 PM   Total Posts: 8

Hello,

I’m trying to create a Mesh with the new NURBSGeometry class, but it won’t appear. Did anybody work with this before and point me in the right direction?

I’ve looked into the Away3D NURBS & NURBS Explorer and have used the vectordata of one of the examples. This example is build with an older away3d version though and some of the classes seem to have changed.

My code looks like this at the moment.

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(nurbplaneMaterial);
nurb.refreshNURBS();
view.scene.addChild(meshObject); 
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X