Skip to content

Conversation

amatulic
Copy link
Contributor

@amatulic amatulic commented Aug 9, 2025

Removed one instance of flatten() in vnf_tri_array(), which avoids increasing depth of end cap face arrays just to have flatten() remove it again, and adding each to the recursive triangulation call.

Run time of a test before ranged from 8.35 to 8.57.

Run time after ranged from 8.2 to 8.35.

Tests were performed without rendering or preview. Previewing with vnf_polyhedron() added a couple more seconds to the run time.

Improvement only about 1%, which would make vnf_tri_array() still about 9% slower than the original version that enforced a length difference between rows. I expect the slowdown is due to recursion overhead.

@adrianVmariano adrianVmariano merged commit e940b69 into BelfrySCAD:master Aug 18, 2025
3 checks passed
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