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

ShapeList containing different object types fails to render #92

Closed
MatthiasJ1 opened this issue Aug 25, 2024 · 5 comments
Closed

ShapeList containing different object types fails to render #92

MatthiasJ1 opened this issue Aug 25, 2024 · 5 comments

Comments

@MatthiasJ1
Copy link

MatthiasJ1 commented Aug 25, 2024

This silently fails to render. I had some modifications to my b3d install. It does render, but incorrectly.

x = ShapeList([Circle(1), Pos(2)*Sphere(1)])
show_all()

The list is valid, however, as the below works and renders.

x = x.faces()
show_all()
Screenshot
@bernhard-42
Copy link
Owner

Again, why do you use ShapeList for this? Why not a simple list?

@MatthiasJ1
Copy link
Author

ShapeList is just a list which also provides many CAD utility functions so whenever I have a list of CAD objects that I may want to perform queries on ShapeList > List. For example, I want my functions to return ShapeLists so I can do project(...).faces() rather than ShapeList(project(...)).faces().

@bernhard-42
Copy link
Owner

Got it, thanks
I now support generic ShapeLists (as opposed to the homogenous ShapeLists being returned by faces(), edges(), ...). It'll come with the next release in the coming days

@bernhard-42
Copy link
Owner

Just posted on Discord the newest pre-release.
If you would have some time, I would really appreciate if you could give it a try - thanks :-)

@MatthiasJ1
Copy link
Author

Yes, it works now, thanks!

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