bugpyFormex - Bugs: bug #38608, pyformex_gts.boolean returns...


bug #38608: pyformex_gts.boolean returns non-manifold surface

Submitter:  Sofie Van Cauter <svcauter>
Submitted:  Wed 27 Mar 2013 03:39:20 PM UTC
Category:  Plugins Severity:  3 - Normal
Item Group:  Functionality error Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Thu 28 Mar 2013 01:25:10 PM UTC, comment #2: 

Ascii was made the default format for the command gtsset and the gts2stl step is removed in pyformex_gts.boolean. A reader for binary gts format should still be added.

Sofie Van Cauter <svcauter>
Group Member
Wed 27 Mar 2013 04:03:29 PM UTC, comment #1: 

I suggest we make ascii default and add an option -b|--binary to the gtsset command to create binary output.

And we should also check the binary gts format, and add a reader for that format. When that is done, we can then add the -b flag where we use gtsset.

We should probably also check other gts* commands to see if any produce binary format.

Benedict Verhegghe <bverheg>
Group administrator
Wed 27 Mar 2013 03:39:20 PM UTC, original submission:  

I noticed that the function `boolean` in pyformex_gts.py may return surfaces that are not manifold even if the input surfaces are manifolds. This function runs the `gtsset` command, which creates a binary GTS file and uses `gts2stl` to convert this binary file to STL format.

I looked at the code in pyformex/extra/gts/set.c and on line 332 there is `binary=TRUE`, which causes the output to be written to a binary GTS file, which can not be directly read into pyFormex. When changing this to `binary=FALSE` and ommitting the `gts2stl` filter command in `boolean`, my output surface is a manifold. Running the `gts2stl` command afterwards still returns a non-manifold. So probably this format conversion causes some nodes to be merged or so. Therefore, I suggest to write the output to ASCII format and to ommit the `gts2stl` command.

Sofie Van Cauter <svcauter>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by svcauter (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code