View Full Version : BitArray problem.. plz help

Martin Andersen
09 September 2003, 07:49 PM
Hi I have a little problem with this bit array:

What I'm trying to do is get the first number from the bitarray, but when I solve it it does something wrong.

I will then use the first number (ex. 23 ) to select an PolyEdge, what is it I'm doing wrong ????

MyVal = (#{(bitarray2array bothrings)[1]}) as bitarray

EdgeVal = ($.EditablePoly.SetSelection #Edge MyVal)

Hope u can help :-)

09 September 2003, 08:10 PM
That works for me. But it's not the method that I would most likely use to accomplish this. This would be more direct:

polyOp.setEdgeSelection $.baseObject (bothrings as array)[1]

CGTalk Moderation
01 January 2006, 01:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.