mayo icon indicating copy to clipboard operation
mayo copied to clipboard

Cannot export an .STL file to .STEP - exported file is empty (possible bug?)

Open pilotferdi opened this issue 4 months ago • 1 comments

I don't know if there is a problem with my Linux system (Mint 21, Cinnamon), or there is a bug involved, however, I would like to find a solution to the following problem:

I am using Mayo-0.9.0-x86_64.AppImage using the terminal in order to capture any error messages it may output. I opened an .STL file and tried to export it to a .STEP file. The file opened, and the part was displayed properly in the window, however, the terminal displayed the following message:

"TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message: OpenGl_Window::CreateWindow: window Visual is incomplete: no stencil buffer"

With the mesh selected in the left bar, I selected File -> Export selected items, and chose the STEP option from the "Files of type:" menu. Clicked "Save", and the terminal message said the transfer (write) was successful:

"******************************************************************* ****** Statistics on Transfer (Write) ******


****** Transfer Mode = 0 I.E. As Is ****** ****** Transferring Shape, ShapeType = 4 ****** ** WorkSession : Sending all data Step File Name : /home/ferdi/Documents/3D_Modeling/3D_Printing/DryBox/lid.step(20 ents) Write Done"

The file was written on the drive, however, when I tried to open it, there was an empty space, as if no information was saved. The error message that was displayed when I opened the .STL file also showed up when I opened the .STEP file. I took screenshots after each step (no pun intended).

Yet another error message showed up when I closed the .STL and .STEP files:

"TKOpenGl.WinSystem | Type: Error | ID: 0 | Severity: High | Message: glXMakeCurrent() has failed!"

I tried to make the conversion in the terminal, however, even though I managed to get into the AppImage, I was unable to use the command line interface (CLI) to export the .STL file to .STEP. Is there a way to access the CLI from the AppImage that I'm not aware of?

The system this occurs on: Linux Mint 21 Cinnamon NVidia GeForce RTX 2060, driver version: 550.163.01 OpenGL 4.6.0, GLX 1.4 on Xorg server OpenCascade (libocc) 7.6.3

Image Image Image

Thank you for your consideration!

pilotferdi avatar Sep 11 '25 04:09 pilotferdi

Hello I think you can ignore the warning messages as the 3D display is working. The 3D view contols below the view cube isn't translucid and that seems to be always the case under Linux. This is a problem to be investigated.

About STL to STEP conversion this is not supported yet with Mayo. STL is a mesh format and STEP is oriented towards BREP shapes, but the STEP standard allows tesselated(mesh) representations. OpenCascade supports STEP tesselations since version 7.7 with some dedicated options. I will extend the STEP reader parameters to expose those options so that will fix the issue you reported.

HuguesDelorme avatar Sep 11 '25 06:09 HuguesDelorme