Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Union Jack type mesh

More
3 years 1 month ago #3587 by shasha
Union Jack type mesh was created by shasha
Hi everyone!
I have a question about how to generate a Union Jack type mesh in the domain [0, 1] ^ 2.

Thank you in advance!
Shasha
More
3 years 1 month ago #3589 by mneunteufel
Replied by mneunteufel on topic Union Jack type mesh
Hi Shasha,

you can use the spline goemetry class, see here , by defining the appropriate points and connect them.

The CSG2D class can also be used, see here , by adding/subtracting the rectangles.

Attached there is a small example with the CSG2D class which you can use as starting point.

Best
Michael

File Attachment:

File Name: union_jack.py
File Size:1 KB
Attachments:
The following user(s) said Thank You: shasha
Time to create page: 0.115 seconds