neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
214 stars 53 forks source link

Regularization failing for `-transform`'ed domain #724

Open rquey opened 1 year ago

rquey commented 1 year ago

Discussed in https://github.com/neperfepx/neper/discussions/718

Originally posted by **ccis88** July 7, 2023 I have a line of instructions and results, but don't know what the problem is. neper -T -n 20000 -dim 2 -domain "circle(18):translate(-9,-9)" -morphooptiini "coo:file(cooo),weight:0" -transform "cut(cylinder(0,0,0,0,0,1,8.5),hspace(0,0,-1,0),hspace(0,-1,0,0))" -morpho voronoi -regularization 1 ![image](https://github.com/neperfepx/neper/assets/122538253/12375b47-6695-4cd4-a60d-7a67d035ee09) Thanks for the answer!!!
rquey commented 1 year ago

(Note to self) Here is a smaller example that reproduces the problem:

This command stops right before the problem occurs:

neper -T -n 50 -id 10 -dim 2 -domain "circle(1)" -transform "cut(cylinder(0.5,0.5,0.5,0,0,1,0.25))" -reg 1 -format tess,geo -o test -rsel 0.25

image

This command reproduces the problem (deletes one more edge, which generates a wrong new vertex):

neper -T -n 50 -id 10 -dim 2 -domain "circle(1)" -transform "cut(cylinder(0.5,0.5,0.5,0,0,1,0.25))" -reg 1 -format tess,geo -o test -rsel 0.258

image