helppyFormex - Support: sr #110481, Export geometry from stent example

 
 

sr #110481: Export geometry from stent example

Submitted by:  Paul Jermihov <pjtree>
Submitted on:  Mon 03 May 2021 10:51:38 PM UTC  
 
Category:  Open discussion Priority:  5 - Normal
Severity:  3 - Normal Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Tue 04 May 2021 08:22:50 PM UTC, comment #2: 

Hi Verhegghe,

Thank you for the response :) ! I made the change but I was not able to export anything as I keep getting the warning that there is nothing to select.

I believe that there is an issue with my environment/installation as my code outputs (prints etc) are not being printed to the message section of the GUI. The outputs are only visible in the editor (VIM in my case). I am going to make another request for that issue.

Thanks,

Paul

Paul Jermihov <pjtree>
Tue 04 May 2021 07:19:55 AM UTC, comment #1: 

Hello Paul,

Indeed, the wire stent example dates from the very beginning of pyFormex when there were no export functionalities in the GUI. Everything was exported directly from the script depending on the target we were exporting to (like in the WireStent_calpy example). I should update the example some day.

For now, you can easily make the stent available in the GUI by adding a line in the example's source, near the end:

    if show=='Formex':
        F = H.getFormex()
        draw(F)
        pf.PF['Stent'] = F     # Export the stent to the GUI

For export to one of the pyFormex formats (.pzf, .pgf) this would be fine. For other formats, you may have to convert the Formex object to a Mesh first. You can do that in the GUI, or you can add the conversion directly in the line above:

        pf.PF['Stent'] = F.toMesh()

The Mesh can then be exported in .obj or .off formats.

Benedict Verhegghe <bverheg>
Project Administrator
Mon 03 May 2021 10:51:38 PM UTC, original submission:  

Hello,

I ran the wire stent example successfully and now I would like to export the geometry. However, when I attempt to do this in the GUI I am given a warning that no geometrical objects are selected. What needs to be done to export the wires geometrically?

Thanks in advance,

Paul

Paul Jermihov <pjtree>

 

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

Attach Files:
   
   
Comment:
   

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 pjtree (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.7