8000 switched property indexing from vector to scalar by elalish · Pull Request #1016 · elalish/manifold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

switched property indexing from vector to scalar #1016

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

Merged
merged 3 commits into from
Nov 1, 2024
Merged

switched property indexing from vector to scalar #1016

merged 3 commits into from
Nov 1, 2024

Conversation

elalish
Copy link
Owner
@elalish elalish commented Oct 30, 2024

Fixes #664 (reply in thread)

The bindings probably still need some work...

@elalish elalish self-assigned this Oct 30, 2024
@elalish elalish added the breaking change API changes for major versions label Oct 30, 2024
@elalish elalish added this to the v3.0 milestone Oct 30, 2024
@elalish elalish requested review from pca006132 and geoffder October 30, 2024 00:10
@@ -52,15 +52,10 @@ void manifold_material_set_metalness(ManifoldMaterial *mat, double metalness) {
from_c(mat)->metalness = metalness;
}

void manifold_material_set_color(ManifoldMaterial *mat, ManifoldVec4 color) {
void manifold_material_set_color(ManifoldMaterial *mat, ManifoldVec3 color) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just taking a look on my phone from the hospital with a suddenly one month early (healthy) new born daughter, but this looks ok to me. The from_c overload should be doing its job here so nothing needs to change past the type.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks, and congrats! My first daughter was also a month early - had to spend a week in the NICU, which wasn't much fun. But she's fine and it's hard to believe she's ten now. Good job on getting out of grad school - want to share your dissertation? Enjoy your family time, and let me know if you want a Google referral.

@geoffder
Copy link
Collaborator

Still trying to check the emails! Sorry I've still been AWOL, PhD is done, and now baby is born. I hope I can make space to bring back some OSS and extracurricular coding back into my life before too long, but life continues to provide new challenges.

src/manifold.cpp Outdated
@@ -302,7 +301,7 @@ Manifold::Manifold(const MeshGL64& meshGL64)
* front/back side. Each channel must be >= 3 and < numProp, and all original
Copy link
Collaborator

Choose a reason for hiding this comment

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

update documentation?

for (int i : {0, 1, 2}) {
const vec3& uvw = {0.5, 0.5, 0.0};
const double alpha = std::min(uvw[0], std::min(uvw[1], uvw[2]));
options.mat.vertColor[out.triVerts[3 * tri + i]] =
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we have color for this now?

Copy link
Owner Author

Choose a reason for hiding this comment

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

No, but it also wasn't working before - I realized this was leftover code that wasn't really doing much.

@elalish elalish merged commit a8a90c7 into master Nov 1, 2024
19 checks passed
@elalish elalish deleted the normalVec branch November 1, 2024 18:45
@elalish elalish mentioned this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change API changes for major versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0