-
Notifications
You must be signed in to change notification settings - Fork 99
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
Rename clipMeshVertices to cutMeshByBox ? #26
Comments
Hi, hmm, I usually find that the term "clip" implicitely refers to "clipping by box". And I am not sure the term "cut" is very common in geometric computing? The best would be to have a "clipMesh" function, that also creates new faces, edges and vertices when faces intersect the box boundary. It's on the TODO list, for a while... |
Yes, for me it wasn't so much about the term cut or clip. But I think it would be useful to add "Box" or "ByBox" at the end, because you can clip a mesh with everything: box, sphere, plane, tetrahedron,... So for me clip does not "implicitely refers to "clipping by box". ;-) Kind regards |
Well, clipping by a sphere or a tetrahedron is not as common as clipping by a rectangular box, no? NB: I sometimes used "byPlane" suffix for some functions, as clipping by a box can be computed as six clipping by planes. |
Maybe the easiest way is to keep the name clipMeshVertices and, if necessary, add an additional input parameter like 'shape', to select the 'box', 'sphere', etc ... For me it wasn't clear that clipping refers usually to a box. ;-) |
Hi,
I try to update it ASAP. |
Hi, I think the first version is more elegant and 'box' can be the default value. I could add the parsing if you want. But take, what you prefer. ;-) Kind regards |
Hi David I've added clipMeshByBox.m Maybe think about an naming convention. I've listed similar functions, I've found: Functions creating new vertices, faces: Functions NOT creating new vertices, faces: Kind regards |
Hi David
clipMeshVertices might be renamed to cutMeshByBox or cutMeshBox?
Kind regards
The text was updated successfully, but these errors were encountered: