Jump to content

getbbox_size - what input does it expect?

Recommended Posts

Hey guys, 

I'm trying to learn VEX a bit more and for an experiment I wanted to do I want to get the bounding box size of the first input in my wrangle node. 
But I just get an error and don't understand what I've done wrong - any and all help in appreciated! 

vector getpointbbox_size(0, @ptnum);


Link to comment
Share on other sites

vector size;
size = getpointbbox_size(0);

It expects an input Geometry and outputs the size of the entire thing. So it doesn't need any other argument.

note, that "getpointbbox_size" only looks at the points. you can use "getbbox_size" to check for everything in your input geo. From the help:

"getpointbbox_size is the same as getbbox_size except it only computes the bounding box of the points. So if a primitive has extents that don’t have points (for example, the boundary of a primitive sphere), they will not be included in the box."

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...