-
Notifications
You must be signed in to change notification settings - Fork 32
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
Adding check for splines #210
Conversation
I see the CI is failing with STEP files that are in the repo already. It looks like now I've added a check for splines some of the step files in testing/inputSTEP are found to contain contain splines. I shall improve the error message so we can see which files have splines |
Locally I'm seeing that these files contain splines
|
I've replaced the code that terminated the program when finding splines with a more gentle writing to log file as it appears that spines can be contained in step files but not used and that GEOUNED is fine with this. |
this one is ready for review |
Hey @psauvan and @jpcatalanUNED! Any idea why some of the stp files, when opened in text editor, show B_SPLINE_CURVE_WITH_KNOTS, but splines are not identified in SpaceClaim and the models translate well? |
I think the STP file keeps a history of the previous edges even after they have been simplified or converted to other edge types |
Check for spline by using face.surface rather than edges |
Description
This PR adds a check on all the imported solids to see if there are splines present. If spines are present then a
VaueError
is raised and a message explaining the options is provided to the users.Here is a screen shot of a cad geometry with spines being loaded and the error message
then the cad file gets loaded again with
skip_solids=[0]
and the load is successfulFixes issue
fixes #201
Checklist