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

Second pull request attempt #227

Merged
merged 11 commits into from
Nov 25, 2024
Merged

Second pull request attempt #227

merged 11 commits into from
Nov 25, 2024

Conversation

JeffreyOI
Copy link
Contributor

No description provided.

Added simple mesh (one triangle) to illustrate the structure of the mesh class. Some of this may belong in the src, but since everyone looks at the readme, I thought it helpful to do a little explanation here.
Missing setuptools installation. Causing AV check to fail.
@JeffreyOI JeffreyOI marked this pull request as draft October 16, 2024 06:12
@JeffreyOI JeffreyOI marked this pull request as ready for review October 16, 2024 06:19
@JeffreyOI JeffreyOI marked this pull request as draft October 16, 2024 06:26
@JeffreyOI JeffreyOI marked this pull request as ready for review October 16, 2024 06:26
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 05:41
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 05:41
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 05:48
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 05:48
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 15:20
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 15:20
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 15:25
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 15:26
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 15:44
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 15:44
@JeffreyOI JeffreyOI marked this pull request as draft October 17, 2024 15:58
@JeffreyOI JeffreyOI marked this pull request as ready for review October 17, 2024 15:58
@wolph
Copy link
Owner

wolph commented Oct 26, 2024

Wow, that's quite a lot of changes. I got to ask though, did you have issues without the bool(...) cast or was that simply the result of debugging?

Can you explain the purpose of this pull request? I see a nice addition to the readme and a few random changes that could be due to changes in my branch.

@wolph
Copy link
Owner

wolph commented Nov 25, 2024

Polite request for a reply @JeffreyOI :)

@JeffreyOI
Copy link
Contributor Author

Hi @wolph , sorry I am just seeing your message. :) I initially just set out to make a MWE of creating an stl from scratch. The example in the readme was a bit complicated for me at first. :P I thought that starting with a single triangle was more instructive. What do you think?

As for the other changes, they were in response to my branch failing the tox builds. Since it was failing for reasons other than my readme change, the issues must've been preexisting in the main branch. I wasn’t sure if my submission would get taken seriously if it didn’t pass the auto checks, so I went through every thrown error, fixing each along the way.

@JeffreyOI
Copy link
Contributor Author

p.s. have you ever thought about making a library of primitives like cube(), cone(), sphere(), etc.? It wouldn’t be too difficult I would think, and I imagine it could be quite useful for designers. I have mocked up a cube() fn for a project I’m working on (using numpy-stl). Let me know if this is something you would be interested in.

@wolph
Copy link
Owner

wolph commented Nov 25, 2024

Yeah, nice idea. It's not what this library was designed for initially, but it could make the workings of the library far more obvious.

Thank you for all the help!

@wolph wolph merged commit e132950 into wolph:develop Nov 25, 2024
1 check was pending
@wolph
Copy link
Owner

wolph commented Nov 25, 2024

I've merged your pull request and I'm going to create a new release today. It seems you've inadvertently fixed the issues that numpy 2 caused: #223

Now the tests for numpy 1 are broken, but that's easily fixable by making your changes conditional :)

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