Identifying Boundary Nodes in a Point Cloud

76 ビュー (過去 30 日間)
Finlay Price
Finlay Price 2024 年 11 月 22 日 16:17
コメント済み: Image Analyst 2024 年 11 月 23 日 15:31
I have 2 point clouds which represent the nodes of 2 3D separate lattices. There is a small gap between the lattices where they don't join together correctly. The boundary face closest to the other body is jagged. I want to identify these bounadry nodes so I can connect them and join my lattices (but the joining part is something I can do in external softwares). Does anyone have any suggestions on how I could go about identifying these boudary nodes? I have tried using the "boundary" function but I am trying with a criteria for identifying the nodes. Any help would be greatly appreciated. I have attached a picture of the nodes for reference.
  4 件のコメント
Finlay Price
Finlay Price 2024 年 11 月 23 日 15:06
My apologies, maybe I haven't explained the context of my problem. So each point cloud represents the node points of a lattice. In this case obviously there are 2 separate lattices. Critically, these lattices are not joined to each other and also not of the same type of unit cell, hence their nodes don't align. I am trying to find the closest nodes to each other so I can find joining pairs. I will use these nodes coordinates to create a series of struts through which will attach the lattices. Does that make sense?
Image Analyst
Image Analyst 2024 年 11 月 23 日 15:31
And did the suggestions of pdist2 or knnsearch not work? I've seen other people use them for that situation.

サインインしてコメントする。

回答 (3 件)

Matt J
Matt J 2024 年 11 月 22 日 17:33
If the regions are supposed to be convex, you can use convhull or convhulln.
  8 件のコメント
Finlay Price
Finlay Price 2024 年 11 月 23 日 14:31
Do you have any suggestions on how to identify these points? I know this is a bit of a wild shot haha
Matt J
Matt J 2024 年 11 月 23 日 15:02
You're the one who has made the decision that they belong in the boundary. Once you tell us why, we might have some suggestions.

サインインしてコメントする。


Walter Roberson
Walter Roberson 2024 年 11 月 22 日 23:21
Your red nodes are sometimes immediately adjacent to your blue nodes. There is no way you will be automatically able to differentiate the nodes -- not unless there is some attached property that can tell them apart (such as color or reflectivity or infrared emission.)
  1 件のコメント
Finlay Price
Finlay Price 2024 年 11 月 22 日 23:33
I can differentiate between both the red and blue points okay. They are derived from two separate .csv’s which contain their xyz coordinates. It’s more identify the closest ones to each other on those jagged faces :/

サインインしてコメントする。


Image Analyst
Image Analyst 2024 年 11 月 23 日 4:38
Maybe use either pdist2 or knnsearch to identify blue points that are closest to red points. In other words, pairs that have minimum distance between them.

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by