Skip to content

Parametric type of Mesh restricted to Real #261

Open
@fhagemann

Description

@fhagemann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions