weria-pezeshkian / TS2CG1.2

TS2CG version 1.2
GNU General Public License v3.0
4 stars 2 forks source link

How to generate a torus "properly" ? #1

Closed tubiana closed 1 year ago

tubiana commented 1 year ago

Hi :-)

I would like to generate a torus, like on this screenshot (generated with BUMPY, but with this system since the lipids are not homogeneously distributed, it makes holes and the torus became smaller during the MD). Umol_2

So I have generated a torus in Blender (add > Torus > then I subdived) , used the script to convert it into STI format, but when I use the command PLM -TSfile newTS.tsi -bilayerThickness 3.8 -rescalefactor 10 10 10 I have some error that provide me to use the PCG command then. Output in log file but roughfly here's the errors :

 Warning : This system does not look like a closed system or the triangles orination are not consistent 
 WARNING: vertex has a zero area 

 WARNING: normal has zero size 

-nan  -nan  -nan  error: delta is negative, this means curvature cannot be found 
0

out.log torus_V1.stl.zip

Is there a "clean way" to generate a mesh in blender ?

Thank you for your help =D

weria-pezeshkian commented 1 year ago

Hi,

Could you send mew the newTS.tsi file?

Below is a tsi file for a torus but maybe you need something more generic.

torus.tsi.zip

Best,

tubiana commented 1 year ago

newTS.tsi.zip Thank you for your quick answer ! Of course! Here's my tsi file! I check yours, and it seems that yours have something bellow "inclusions" line. (mine is at set at 0).

I will start to play with your tsi (thank you so much =D!), but in the futur I have to generate different radius and shape so maybe I have to find out how to do it myself...

Best! Thibault.

weria-pezeshkian commented 1 year ago

Dear Thibault,

Having "inclusions 0" is just fine. As a matter of fact you may remove all the inclusion section from my file.

Your file does not contains enough triangles. The number of the vertices and triangles are equal. That cannot be the case. For a torus number of triangles is twice the number of the vertices.

Best regards, WP

tubiana commented 1 year ago

Ok great thank you!! I will work on that ;)

Best regards, Thibault.

tubiana commented 1 year ago

Edit : It works! Thank you :) On blender I just added a triangulate modifier + apply before explorting my mesh. Umol_3