Skip to content
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

subtractions of extrude_along_path() objects do not show correctly in 'Preview'. #189

Open
asdfstuart opened this issue Nov 26, 2021 · 2 comments

Comments

@asdfstuart
Copy link

Subtracting an extruded object from an OpenSCAD object or another extruded object seem to confuse the 'Preview' viewer. The models render correctly and show correctly in the 'Surfaces' viewer.
I am using version 1.1.1 with the latest extrude_along_path.py containing the fixes for issue #18
I added the function extrude_example_subtractions() to the attached path_extrude_example.py file. The problems show up most clearly if you rotate to look up the +y axis.

path_extrude_example.zip
7.

@etjones
Copy link
Contributor

etjones commented Nov 27, 2021

Thanks for including that function; it was really useful to see what was happening.

subtraction image

When I set the convexity = 10 argument in the created polygons, the visualization issue is resolved. Looking at the polyhedron() docs, it seems like convexity=10 would be a more reasonable default value that wouldn't impact visualization speed too much. I'll leave this open until I've made a pass at that.

convexity fixed

@asdfstuart
Copy link
Author

Thanks for the quick fix, it worked for my model as well. Also, any convexity other than 1 worked for my model.
You are welcome for the function. I really appreciate your extrude_along_path() function, it is useful and saves me a lot of time. I am glad I could return the favor of in a small way.

etjones added a commit that referenced this issue Nov 29, 2021
…some situations in the CSG visualizer where back faces were shown incorrectly. Changes to make tests work as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants