Skip to content

Parametric type of Mesh restricted to Real #261

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

Open
fhagemann opened this issue Jun 12, 2025 · 0 comments
Open

Parametric type of Mesh restricted to Real #261

fhagemann opened this issue Jun 12, 2025 · 0 comments

Comments

@fhagemann
Copy link

Right now, the parametric type T of GeometryBasics.Mesh is restricted to Real:

struct Mesh{
Dim, T <: Real,
FT <: AbstractFace,

It used to be restricted to Number initially, but this was changed in #219.
I see that it was first changed from Number to Real in b08b6f9, adding a TODO to check if it should be Number. The TODO was then finally removed in a0a6a84.

Is there any reason why T was restricted to Real?
The reason I'm asking is because I am playing around with Unitful and the current implementation does not allow for T in Mesh to be a Unitful.Quantity <: Number, for example.

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

No branches or pull requests

1 participant