Convert a Quadrangle to a Triangle

  • Thread starter Thread starter luonganh89
  • Start date Start date
  • Tags Tags
    Convert Triangle
AI Thread Summary
The discussion centers on converting a quadrilateral mesh to a triangle mesh for computational fluid dynamics (CFD) applications. The user has a mesh file containing elements defined by four nodes each and is seeking guidance on the conversion process. A common method suggested involves splitting each quadrilateral into two triangles by drawing a diagonal. However, complications arise if the quadrilaterals are curved, as the choice of diagonal can affect the outcome. An alternative approach mentioned is to find the center of the quadrilateral and connect it to the corners, creating four triangles. The user is also working on a remeshing code and plans to share results but is encountering some difficulties.
luonganh89
Messages
12
Reaction score
0
Hi all !

I got stuck in establising an method to Convert a Quadrangle mesh to a Triangle mesh (CFD).
I have a mesh file (.dat) which have information:
Number of Element - Node 1 - Node 2 - Node 3 - Node 4
1 1 2 3 4
2 3 4 5 6
Have anyone done like me. Can share me some information thank you so much

luong anh
pfiev
 
Technology news on Phys.org
You need to be more specific.
What exactly is the problem?
What is the method that you established and where are you stuck?
 
The obvious thing to do is turn each quadrilateral into two triangles by drawing a diagonal. But if the quadrilaterals are curved (i.e. a 3D surface) the results may look different depending on which diagonal you choose.

If that is a problem, maybe you need to find the "center" of the quadrilateral (i.e. the average of the 4 corner points) and join that to the corners to make 4 triangles.

As gsal says it really depends what the triangle mesh will be used for.
 
:D of course , I've just wanted to remesh my model, and i write a short code to remesh it and open it by using tecplot , but now i come back home , tomorrow i will send my result to you but i got some trouble @@
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
3
Views
1K
Replies
3
Views
1K
Replies
9
Views
3K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
5
Views
2K
Back
Top