Jump to content
Sign in to follow this  
ela1995

center point for custom primitive

Recommended Posts

Posted (edited)

Maybe ..you have Here in Forum diif Approach I think .

float bound[] = primintrinsic(@OpInput1, "bounds", @primnum);

vector min = set(bound[0], bound[2], bound[4]);
vector max = set(bound[1], bound[3], bound[5]);

addpoint(geoself(),avg(min,max));
removeprim(geoself(),@primnum,1);


 

cvcccc.jpg

Vbbb.hiplc

Edited by Librarian

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  

×