--- In [email protected], "swzoh" <[EMAIL PROTECTED]> 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?

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)

If that's what you want

I'm away and offline for a week from Tuesday (tomorrow) night.







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/
 



Reply via email to