0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Grasshopper】重複する点の取り扱い

Posted at

「Cull Duplicates」を使う

image.png

上図に示すように点が重複している場合、点集合を操作することができます。具体的には、2つの操作方法があります。
①重複する点を削除して1つにする
②重複する点をすべて削除する

今回使用するコンポーネントは「Cull Duplicates」です。
オプション操作ができるので説明します。

①重複する点を削除して1つにする

重複する点を削除して1つにしたいときは、「Cull Duplicates」コンポーネントを右クリックして「Leave One」を選択します。
image.png

図に示すように、4番目(index=3)のリストが消えていることがわかります。このように、「Cull Duplicates」コンポーネントを使うことで、重複のない点集合を作ることができます。

②重複する点をすべて削除する

重複する点をすべて削除したいときは、「Cull All」を選択します。
image.png

図に示すように、重複していた1番目(index=0)と4番目(index=3)の点が消えています。このように、「Cull Duplicates」コンポーネントを使うことで、重複点をすべて削除した集合を作ることができます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?