solvespace / solvespace

Parametric 2d/3d CAD
http://solvespace.com/
GNU General Public License v3.0
3.24k stars 485 forks source link

Problems with text extrusion when forcing triangle mesh #632

Open tjaderxyz opened 4 years ago

tjaderxyz commented 4 years ago

System information

SolveSpace version: 3.0~7baf5858 Operating system: Windows 10

Expected behavior

Text extrusion should work both with NURBS and with triangle mesh.

Actual behavior

I get errors when exporting an STL of a shape with a extruded text boolean operation with forced triangle mesh depending on the used font. In the attached file I used Deja Vu Sans Oblique, I also saw errors with Cambria and Comic Sans.

Additional information

texttest texttest.zip

phkahler commented 4 years ago

@tjader0 You were right to submit this issue with triangle mesh boolean operations (subtracting the text from the block). I'd like to clarify that there is no need to actually force to mesh in this case. STL export works fine (no bad edges) if you just leave it as NURBS. The difference is in when it gets converted to triangle mesh. When you check the box, it's converting the box to mesh and the extruded text to mesh and then doing the difference operation. If you leave it NURBS the difference is done on NURBS surfaces and it's automatically converted to triangle mesh after - for display or STL export.