Skip to content

Conversation

@dimitre
Copy link
Member

@dimitre dimitre commented Feb 14, 2025

with some small changes here we can avoid including ofVectorMath.h with all templates and other includes

vert = (vertices[i-1]+vertices[i]+vertices[i+1]) / 3.0f;
} else if ( i % 3 == 2) {
vert = (vertices[i-2]+vertices[i-1]+vertices[i]) / 3;
vert = (vertices[i-2]+vertices[i-1]+vertices[i]) / 3.0f;
Copy link
Member

Choose a reason for hiding this comment

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

yeah good idea to force the float!

@danoli3 danoli3 merged commit af36cb4 into openframeworks:master Feb 25, 2025
15 checks passed
@dimitre dimitre deleted the ofrect branch February 25, 2025 12:02
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