mumax / 3

GPU-accelerated micromagnetic simulator
Other
447 stars 150 forks source link

Add triangle shape #294

Closed MathieuMoalic closed 1 year ago

MathieuMoalic commented 2 years ago

Triangles are quite hard to get right using the basic shapes given in mx3 scripts but they are incredibly easy to add in here. I added the shape for a 2D triangle as an example but I guess a 3D version ( similar to the cylinder ) or other shapes ( hexagons, diamonds ) could be useful.

This is my first PR, there are probably a couple more things to change.