Jump to content
art3mis

Divide SOP to create single point in Quads

Recommended Posts

Any Divide SOP experts? I need to generate a single point or vertex in the center of each poly(quad) on an imported FBX. I've enabled 'Compute Dual' and for this particular geometry also need Convex Polygons and Maximum Edges set to 3. But what happens is that I am getting 2 points per quad. It seems to be triangulating the geometry. Can anyone suggest a solution?
 

Divide_SOP.JPG

Share this post


Link to post
Share on other sites

Run a primitive wrangle:

int npt = addpoint(0, v@P);
setpointgroup(0, "center", npt, 1);

For each primitive, add a point (npt) at the current primitive's position (which is the same as its center point) and add that point to the group "center"

Share this post


Link to post
Share on other sites

Use another divide with Convex Polygons off and Compute Dual on. Merge that into your network after grouping those points.

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

×