# Selecting surfaces on similar or identical centroids

**URL:** <https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695>\
**Category:** Grasshopper\
**Created:** [January 22, 2019, 11:55am UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695 "2019-01-22T11:55:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleclitchfield](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aleclitchfield/32/634333_2.png) [@aleclitchfield](https://discourse.mcneel.com/u/aleclitchfield)\
**Post date:** [January 22, 2019, 11:55am UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/1 "2019-01-22T11:55:16Z")

</div>

Hi all,

i would like to select all surfaces on a specific plane.

Here is my issue:

a polysurface has been turned into separate surfaces.

once this has been done i essentially have ‘duplicates’, sat one behind each other (see image)!  
Duplicates|690x464

I have looked at doing this by centroid of panel and X axis position, but they (inevitably) are all a little off. is there a way of either:

reducing the sensitivity of the centroid search to say 1 decimal place, or:

selecting them another way?

can i then ‘split’ similar or identical x axis centroid’s into two separate lists?

Many thanks!

Alec

 ![Duplicates](https://global.discourse-cdn.com/mcneel/original/3X/e/b/eb00d23f213934ca9801721157075be7aa848522.png)

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [January 22, 2019, 12:34pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/2 "2019-01-22T12:34:09Z")

</div>

Hello,

I’m not quite sure what you are trying to do. If you like to select a surface based on a plane you can use  
a simple approach like this:

 ![chifip](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/1/8/18751d1dea2626c9c24492ff3641e5d839cc292e.png)

[checkIfInPlane.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/8/882b4d27716303835fa9cb2940e8fb80954dbd7e.gh) (17.6 KB)

---

<div class="post-metadata">

**Author:** ![aleclitchfield](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aleclitchfield/32/634333_2.png) [@aleclitchfield](https://discourse.mcneel.com/u/aleclitchfield)\
**Post date:** [February 4, 2019, 12:38pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/3 "2019-02-04T12:38:09Z")

</div>

sorry, let me explain.

i have a set of surfaces which were previously surfaces and have been exploded. this is required to undertake an analysis if single surfaces (poly’s dont work).

 ![GH%20overview](https://global.discourse-cdn.com/mcneel/original/3X/b/a/baa6164d286f34fa517bcc86213fc2aec5acead0.png)

If you zoom in, you will see that the single looking surface is actually 2 separate, but very close together surfaces.

 ![Duplicates](https://global.discourse-cdn.com/mcneel/original/3X/e/b/eb00d23f213934ca9801721157075be7aa848522.png)

i would like to remove the inner most of these two surfaces on each occaion, leaving me with a single set of surfacaes.

initially my idea was to find the centre of each surface and remove one of each that were closest. does this work? is there a simple way of doing this? or is there a method of picking on the the ‘back’ surface in each instance?

 ![Grasshopper%201](https://global.discourse-cdn.com/mcneel/original/3X/4/e/4e2fd6045b8943ec9bd72f4e7ff4aff32794b7e9.png)

many thanks in advance!

AL

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [February 4, 2019, 12:55pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/4 "2019-02-04T12:55:26Z")

</div>

Post surfaces please.

Depending on the normals i would probably use Point Plane Side pufferfish component – after grouping, most likely by proximity.

---

<div class="post-metadata">

**Author:** ![aleclitchfield](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aleclitchfield/32/634333_2.png) [@aleclitchfield](https://discourse.mcneel.com/u/aleclitchfield)\
**Post date:** [February 4, 2019, 1:31pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/5 "2019-02-04T13:31:36Z")

</div>

Hi Rickson,

im not sure what you mean, i have posted surfaces, do you mean the actual Rhino?

Alec

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [February 4, 2019, 1:38pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/6 "2019-02-04T13:38:18Z")

</div>

Yes, actual rhino surfaces.

> [@Help Us Help You](https://discourse.mcneel.com/t/how-to-ask-effective-questions/50034):
>
> Asking questions and getting answers is what this forum is all about. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions, but don’t think of them as rules and especially don’t think of them as guarantees. 1. Choose a descriptive title for your post Don’t title your question Help! or I have a problem or Deadline tonight!, but actually describe the problem you are having. 2. Be s…

**3. Attach minimal versions of all the relevant files**  
If you have a `gh` file you have a question about, attach it to the post. Do not expect that people will recreate a file based on a screen-shot because that’s a lot of pointless work. It’s also a good idea to remove everything non-essential from a `gh` file. You can use the Internalise Data menu option to cut everything to the left of a parameter

---

<div class="post-metadata">

**Author:** ![aleclitchfield](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aleclitchfield/32/634333_2.png) [@aleclitchfield](https://discourse.mcneel.com/u/aleclitchfield)\
**Post date:** [February 4, 2019, 1:46pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/7 "2019-02-04T13:46:38Z")

</div>

[RH Question.3dm](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/3/e3248a4a9d98e9858b3871e1038033faa703fa88.3dm) (2.5 MB)

got it. thanks for the heads up on the effective questions!

AL

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [February 4, 2019, 2:05pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/8 "2019-02-04T14:05:07Z")

</div>

The point groups for some reason (xy sort?) indexed them nicely. I culled the single units. So no other filters required… at the moment.

[re question.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/8/58e4b08fa1624fc8f0bd2158db2917194c7fc8f7.gh) (7.5 KB)

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/8/8/88fa826a4453d2e4a527152628db7eb3b4b0a36e.png)

---

<div class="post-metadata">

**Author:** ![aleclitchfield](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aleclitchfield/32/634333_2.png) [@aleclitchfield](https://discourse.mcneel.com/u/aleclitchfield)\
**Post date:** [February 4, 2019, 2:07pm UTC](https://discourse.mcneel.com/t/selecting-surfaces-on-similar-or-identical-centroids/77695/9 "2019-02-04T14:07:40Z")

</div>

this is great, thank you!

very useful
