Jump to content

Merging Geometry from Copy SOP


Recommended Posts

Hi all,

I'm trying to selectively reduce the point count of some curves, while maintaining the high point count near the corners.

I have used a Copy SOP to add spheres at the original corners, followed by a Group SOP to add the bounded points to a 'corner' group, followed by a Delete SOP to remove non-selected points.

The sizing of the curves changes.

When the radius of the spheres matches the curve, this whole procedure works fine. First image below.

MY PROBLEM occurs when the curve is smaller and the spheres overlap, resulting in points that should be in the 'corner' group being excluded from the group and thus incorrectly thinned out by the Delete SOP. Second image below.

So, a few questions...

(1.) How can I merge the spheres into a single unit, so that the the Group SOP has a single bounding geometry (rather than the current multiple spheres)?

A Merge SOP doesn't do this.

(2.) Is there a better way (maybe in a VOP SOP or CHOPNET?) to run through the main line points and test to see if each is within a given distance from one of the corner points, and to set an attribute if the test is true?

Thanks in advance!

John

Snake_DeleteOK.PNG

Snake_DeleteFAIL.PNG

The attached file is stripped down, but should give you the idea.

Edited by John Pilgrim
Link to comment
Share on other sites

The curves always going to be 90 degrees?

The originating poly curves will always have 90deg corners, which get rounded by the Convert SOP.

Conversion back to a polygon curve, as your example above did, is fine.

You can see the full project file here:

which is based (with permission) on another artist's work in another thread here on odforce.

Edited by John Pilgrim
Link to comment
Share on other sites

  • 4 years later...

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.

Guest
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...