NURBSGeometry,How to make the edge be divide equally?

Software: Away3D 4.x

Avatar
dottob, Jr. Member
Posted: 08 July 2015 04:44 AM   Total Posts: 49

Sorry for my English*^_^*

Please see the pic

Why? And how to fix this?

Thank you for your help!

 

Image Attachments
post.jpg
   

Avatar
dottob, Jr. Member
Posted: 08 July 2015 09:27 AM   Total Posts: 49   [ # 1 ]

New question:

After do:

NURBS.mesh.geometry.scaleUV(3,3);

Then move x,y,z of the NURBSVertex in _controlNet:Vector.<NURBSVertex>,

the UV change back to 1,1(the NURBS surface can be effect by NURBSVertex,still alive)

But if do

NURBS.mesh.geometry.scaleUV(3,3);
NURBS.nurbsGeo.refreshNURBS()

get:

UV change to 1.3,1.3(the _controlNet doesn’t effect the NURBS surface any more,like dead :( )

Is there a Big Hero can tell me why?

Thank you!

 

   

Avatar
dottob, Jr. Member
Posted: 09 July 2015 01:41 AM   Total Posts: 49   [ # 2 ]

Ok,question one:

nurbsGeo = new NURBSGeometry(controlNet,Un,Vn,Un,Vn,segU,segV,null,null);

make sure:

uCtrlPnts = uOrder
vCtrlPnts = vOrder

At

NURBSGeometry(cNet:Vector.<NURBSVertex>, uCtrlPnts:int, vCtrlPnts:int, uOrder:int = 4, vOrder:int = 4, uSegments:int = 10, vSegments:int = 10, uKnot:Vector.<Number> = null, vKnot:Vector.<Number> = null)
 

Question two:

not so good but works

Just do a bitmapdata tile,then not change the mesh’s UV but it’s material’s bitmapdata

Thank you!

 

Image Attachments
post2.jpg
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X