-
-
Notifications
You must be signed in to change notification settings - Fork 16
trimesh facet shape conversion #722
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
Conversation
|
Cool! I'd have to check again my intuitions about the names and values... Remind me, what is the result from Another complementary vocabulary I've seen in other contexts/software is to talk about the edges not the facets... like |
Right, exactly. This is the nice facet code we used at Python Brasil.
I like |
|
I'm glad you like My first thought was something like But now I remember my first idea... not having two separate kwargs... then if needed you could set Yet one more option that doesn't require knowing what a facet is: |
How about |
Yes this would be OK! What is the general default if no kwarg is passed? Would the |
The default was shape = sketch.create_shape()
with shape.begin_shape(sketch.TRIANGLES):
shape.vertices(obj.vertices[obj.faces.ravel()]) |
@villares, below is a working example of our trimesh facets code in py5:
The
draw_facetskwarg is assumed to be True whenfacet_min_angleis used, so in the above exampledraw_facets=Truecan be omitted and will yield the same result. Thefacet_min_anglekwarg is assumed to be 0 whendraw_facets=Trueis used butfacet_min_angleis not. I think this is a good design choice and considers your thoughts on from discussion thread somewhere.Do you like the kwarg names?