Skip to content

Conversation

cfpbiggs
Copy link
Contributor

Add from_vertices constructor for Triangle that calculates the normal vector and checks that vertices are valid. Uses right-hand rule cross-product for finding the normal.

… vector and checks that vertices are valid. Uses right-hand rule cross-product for finding the normal.
@cfpbiggs cfpbiggs mentioned this pull request Mar 3, 2025
Copy link
Owner

@hmeyer hmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I' m sorry - but I have to push back on this change.
stl_io is meant to manage STL file creation and reading.
The changes you are requesting here are better implemented using https://docs.rs/nalgebra/latest/nalgebra/.

@cfpbiggs
Copy link
Contributor Author

cfpbiggs commented Mar 4, 2025

No need for apologies! To clarify, are you saying you would rather this feature not exist in stl_io at all or that you would rather the implementation incorporated what is available through nalgebra? Either is fine, but if it is the latter, I'm happy to revise. And thank you for your response!

@hmeyer
Copy link
Owner

hmeyer commented Mar 5, 2025 via email

@cfpbiggs
Copy link
Contributor Author

cfpbiggs commented Mar 5, 2025

That makes perfect sense! Does that mean issue #19 should be closed? Based on that thread, it looked like this was still a desired feature.

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

Successfully merging this pull request may close these issues.

2 participants