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

 
 

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

Submitted by:  Sofie Van Cauter <svcauter>
Submitted on:  Wed 27 Mar 2013 03:39:20 PM UTC  
 
Category: PluginsSeverity: 3 - Normal
Item Group: Functionality errorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1