Position of elements'nodes intersected by a line

5 ビュー (過去 30 日間)
Muhammad Usman
Muhammad Usman 2019 年 12 月 14 日
回答済み: darova 2019 年 12 月 14 日
I have a uniform mesh of my domain as shown in the figure. There is a line cutting the domain. I want to access the nodes of all elements intersected by the line. The line is only defined by two points.
P.S: I have shown a simple unifrom mesh here but what if the mesh is non-uniform?
  2 件のコメント
darova
darova 2019 年 12 月 14 日
Did you try polyxpoly?
Muhammad Usman
Muhammad Usman 2019 年 12 月 14 日
Yes I did. But I don't need the intersection of the line with the mesh elements. I need the nodes of the affected elements. Hope the below figure will make it more clear.
The highlighted nodes number/position is required.
HighlightedNodes.png

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

採用された回答

darova
darova 2019 年 12 月 14 日
Look HERE
Check each triangle/element. If intersection exists then pick/highlight this element/triangle

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputational Geometry についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by