--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "swzoh" <seanzoh@> wrote: > > > > I want to create a star-shaped region with 5 structures of point. So, > > I need to create an array of size 5 with structure elements of a > > point. I tried the following, but it seems to not work: > > > > aVertices = dll.create_array(5,"t*",p1,p2,p3,p4,p5) > > > > where p1,p2,p3,p4,p5 are handles to a struct (of a point). > > > > How should I specify the handles to the struture in array? > > Are you passing POINTs in, or getting them out?
I need to pass them in. > If passing them in, current version of plugin doesn't give you > a way of doing it. At the moment arrays are always zeroed, assuming > you're using array to get results back. > > help says: > > "create_array initialises the memory block it allocates to zeros. > In this version there's no way to set array members to user-defined > values. If there's a requirement for that feature, I can add it." > > If you're happy with zeroed array: > > aPoint = dll.create_struct(.....) > aVertices = dll.create_array(5,"struct*",aPoint) This is what actually confused me even if I was aware that there was no dll.set_array_element yet. What's not clear to me: the number and the role of the handle, aPoint here. Just single one is enough? Sean Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
