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.
Right now, the parametric type
TofGeometryBasics.Meshis restricted toReal:GeometryBasics.jl/src/basic_types.jl
Lines 503 to 505 in caa6c89
It used to be restricted to
Numberinitially, but this was changed in #219.I see that it was first changed from
NumbertoRealin b08b6f9, adding aTODOto check if it should beNumber. TheTODOwas then finally removed in a0a6a84.Is there any reason why
Twas restricted toReal?The reason I'm asking is because I am playing around with
Unitfuland the current implementation does not allow forTinMeshto be aUnitful.Quantity <: Number, for example.