Jump to content

Break Down Selection Set into smaller selection sets


broncos15

Recommended Posts

I'm trying to figure out a way to break down a selection set into smaller sets. The reasoning behind this is that when I am processing large amounts of data, it makes more sense to break it down into smaller sets of data that is more pertinent to each comparison. For example, if I have a large selection set of 500 objects, I want to break it down into smaller selection sets, each with a maximum of 50 objects, and then find out if the objects intersect each other.

Link to comment
Share on other sites

The only way may be to look at a tiled approach break your selected area into 4 9 16 etc. You could do this automatically as you have two window points.

Link to comment
Share on other sites

BigAL, thanks for the help! So, if I understand you correctly, the best idea might be once the user has selected all objects, isolate objects, do a tiled selection set based on the coordinates of all the objects isolated, create separate selection sets, then run my code, and unisolate the objects?

Link to comment
Share on other sites

No I was suggesting actual break it down into multiple window selections processing only 1 window at time, probably with a bit of overlap, you 16,000m objects so a 2x2 4 windows would be say 4000 objects per window. This way the left side small objects are not being checked against right side small objects.

 

So user picks bottom left and top right you decide how many windows to use in a repeat have a little defun to work out corners.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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