MATLAB Answers

Position of elements'nodes intersected by a line

2 views (last 30 days)
Muhammad Usman
Muhammad Usman on 14 Dec 2019
Answered: darova on 14 Dec 2019
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 Comments

Muhammad Usman
Muhammad Usman on 14 Dec 2019
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

Sign in to comment.

Accepted Answer

darova
darova on 14 Dec 2019
Look HERE
Check each triangle/element. If intersection exists then pick/highlight this element/triangle

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2018b

Translated by