필터 지우기
필터 지우기

Split 3D Mesh with plane Cut

조회 수: 11 (최근 30일)
Paulus Soenarjo
Paulus Soenarjo 2019년 7월 9일
답변: Oriol Brasco 2019년 7월 9일
I have made 3D analysis code and I want to split 3D mesh into 2 parts with 2D plane, the final result i need is to find out what are the nodes on the left side and the right side, what you see on the image below is the nodes of the 3D object (bumpy), Do you know what method or library i need to use to solve this problem?
Capture.JPG
Here is my data structure from the 2D plane:
Column 1: Face
Column 2: X coordinate
Column 3: Y coordinate
column 4: Z coordinate
Column 5: Finite Element Value
Capture2.JPG
The data structure from the 3D mesh is containing the same data like the table above, Thanks so much!

채택된 답변

Oriol Brasco
Oriol Brasco 2019년 7월 9일
Hello Paulus,
I would try to work only in 2D: projecting the plane to a line in the XY plane. Also, project the points on the XY plane. Once done, the problem just simplifies in only one constraint:
- Defining y=mx+n the projected line on the XY plane and A(xa,ya) an arbitrary point containing the XY coordinates from the 3D mesh:
- If ya>y(xa)=mxa+n the point is on the 'left'
- If ya<y(xa)=mxa+n the point is on the 'right'
Also, you will need to include the point inside the line case and give it a value (left or right).
If you pass the data including the 3D mesh and the plane I could work on a code. I hope that this explanation helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by