필터 지우기
필터 지우기

Position of elements'nodes intersected by a line

조회 수: 1 (최근 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 CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by