New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SolveSpace crashes on lathe #1279
Comments
First I've attached a somewhat fixed version of the file: A better work around may be to add height to the hex shape and let the lathe cut the entire top off, so there is no tangency between the lathe-arc and the flat surface. @ruevs so one duplicate NURBS issue, but also maybe a new one? We should be able to make an even simpler test case for this, but this is a relatively small sketch. |
I'm not on a PC but looking at the assert I was pretty sure the problem in the original model is a duplicate of #1058. @phkahler I'll take a look at your model later on a PC and update the tracking issue with both. |
I sort of workarouned this by forcing NURBS to use triangles and decreasing chord tolerance. |
It's not #1058 because that is due to overlapping surfaces caused by doing lathe on a full circle to create a sphere. This sketch only has entities on the right side of the lathe axis. My first thought was the point on the axis producing NURBS patches with a degenerate edge, but it still happens if we move that point off-axis. Thought: what would happen if we just skipped adding the zero-length exact intersection curve rather than crashing? Also not sure that test is as robust as it looks (control points are not checked). |
I think it is still the same problem since the sphere is tangential to the plane and the thickness approaches zero toward the center. |
On the forum a user posted one more reproduction case. To reproduce open "volumechambredecombustion4.slvs" from the attached archive and lathe "g005-sketch-in-plane" in such a way as to produce the shape in "volumechambredecombustion.slvs". The call stack is as usual:
|
On Linux, SolveSpace just crashes when lathe tool is used. On Windows, it hangs first, and might crash later.
This is the terminal output on Linux:
How to reproduce
Open keycap.slvs.zip, select a normal and a point and invoke
Lathe
.System information
SolveSpace version: 3.1
Operating system: both Windows and NixOS
Additional information
The sketch contains an arc of a quite large circle. But it's required to make a rounded keycap.
The text was updated successfully, but these errors were encountered: