Borromean Seifert Surface
All  1-7  8-9

Previous
Next
 From:  bemfarmer
7682.8 
This script, _ImportTrianglesCSV, is a modification of the P_ImportSTL script., and is about 100 times faster than the previous triangle import script.
It imports one specific kind of file. The files came from surface evolver program.

The CSV file contains only a list of triangle vertices, comma delimited.
There is one vertex per file line, with coordinates x, y, z.
Three file lines defines a triangle by its 3 vertices.

An alert message displays the number of triangles imported. It could be commented out, or maybe have a checkbox?

The total number of vertices in the file should be a multiple of 3.
Otherwise, the last triangle will not be created by loft.

Even though the triangles may be loaded and displayed, failure of the alert message to appear indicates a problem with the file.
This may occur if the last triangle is missing 1 or 2 vertices.
It may also occur if there are extraneous delimiters.

It may be possible to incorporate the delimiter selection of _ImportPointFile script?

- Brian

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
7682.9 
Two more soap films.

- Brian

EDITED: 2 Mar 2021 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-7  8-9