Skip to content

fix: avoid type var in Mesh constructor to enable JuliaC trimming - #282

Merged
SimonDanisch merged 1 commit into
JuliaGeometry:masterfrom
rnwst:fix/juliac
Aug 23, 2026
Merged

fix: avoid type var in Mesh constructor to enable JuliaC trimming#282
SimonDanisch merged 1 commit into
JuliaGeometry:masterfrom
rnwst:fix/juliac

Conversation

@rnwst

@rnwst rnwst commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

The type variable in the Mesh constructor was preventing JuliaC from being able to statically resolve types for trimming. Only use a type variable when the deprecated normals attribute is provided. Also fix the attribute name substitution! The previous logic had a bug in it that resulted in the code not actually substituting normals for normal.

Comment thread src/basic_types.jl Outdated
The type variable in the `Mesh` constructor was preventing JuliaC from
being able to statically resolve types for trimming. Only use a type
variable when the deprecated `normals` attribute is provided. Also fix
the attribute name substitution! The previous logic had a bug in it that
resulted in the code not actually substituting `normals` for `normal`.
@rnwst

rnwst commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

@asinghvi17 - ready to be merged?

@SimonDanisch
SimonDanisch merged commit 71b5eb9 into JuliaGeometry:master Aug 23, 2026
13 checks passed
@SimonDanisch

Copy link
Copy Markdown
Member

thanks!

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.

3 participants