Skip to content

Conversation

@wawanbreton
Copy link
Contributor

Do the heavy calculation of projecting the paint stroke to the texture in C++ optimized code instead of Python, so that the painting is more user-friendly.

CURA-12743

Copy link

@casperlamboo casperlamboo left a comment

Choose a reason for hiding this comment

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

Approved, I do think the utility function in project.cpp could be moved to a dedicated utility file, but I do get that the added overhead of adding a header file etc is annoying.

@wawanbreton
Copy link
Contributor Author

Approved, I do think the utility function in project.cpp could be moved to a dedicated utility file, but I do get that the added overhead of adding a header file etc is annoying.

In regard to the very limited scope of this library, this looks fine for now indeed. I have already put some code in geometric classes, so if we need similar code in other parts later, it can be done at that time.

CURA-12743
Apparently the MSVC compiler is more sensitive about forward-declaring a class or struct, but it doesn't say it explicitly...
@HellAholic HellAholic merged commit c2984f3 into main Oct 3, 2025
5 checks passed
@HellAholic HellAholic deleted the CURA-12743_slow-performance-while-painting branch October 3, 2025 08:45
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.

4 participants