Jump to content
Sign in to follow this  
konstantin magnus

Read point array attribute from detail wrangle

Recommended Posts

I am in a detail wrangle and want to read the first component of a point array attribute. Unfortunately neither point() nor attrib() seem to offer this. I couldnt find suitable array functions, either.

int npts = npoints(0);
i[]@prim_list[npts];
for(int i = 0; i < npts; i++){
    @prim_list[i] = point(0, "sourceprim", i).[0]; // try to access first component
}

 

Share this post


Link to post
Share on other sites

apologies, I'm a noob..but should there be a dot there before the square bracket ? Take it out ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×