User name:
Password:
Forgot password?
Create an account!
« back
Please log in to write a message.
4. Ning (Jun 18, 2010 15.13):
Hi, there Following Hanno's guide, I use the code below temp1=Rhino.PointScale(referenceNodes(1)(arrNodeIndex(0)(count5)),333.333) temp2=Rhino.PointScale(referenceNodes(1)(arrNodeIndex(1)(count5)),333.333) temp3=Rhino.PointScale(referenceNodes(1)(arrNodeIndex(3)(count5)),333.333) temp4=Rhino.PointAdd(temp1,temp2) updatedtargetNodes(1)(count5)=Rhino.PointAdd(temp4,temp3) It seems ok BUT really slow as I have more than 65000 points being handled. Do you have further suggestion for speeding it up? Thank you so much. Regards Ning
3. Ning (Jun 18, 2010 12.16):
Hanno, Thank you a lot. Sorry for my poor knowledge about VB as well. Best Wishes Ning
2. Hanno (Jun 18, 2010 11.50):
Hi Ning, in VBScript it is not possible to use arithmetic operators on arrays. Instead of your + and / you have to use the Rhino methods PointAdd and PointDivide. Hope that helps! Hanno
1. Ning (Jun 18, 2010 11.44):
Hi, there I want to 1) extract data from three different location of a array; 2) and average them; 3) and assign the result into another array using the code below updatedtargetNodes(1)(count5)=(Rhino.PointScale(referenceNodes(1)(arrNodeIndex(0)(count5)),1000)+Rhino.PointScale(referenceNodes(1)(arrNodeIndex(1)(count5)),1000)+Rhino.PointScale(referenceNodes(1)(arrNodeIndex(3)(count5)),1000))/3 The problem is that the code does not work. Actually I feel diffcult to perform some maths opearions due to my limit knowledge about Rhinoscript. Cold you please give me some clues about it? Thanks. Regards Ning
Why are these buttons gray?