Issubset gives error for this Hexahedron

raman_kumar
Tue, 21 Oct 2025 20:46:57 +0000
Visualization

In this code m ⊆ m2 should output either true or false.

using Meshes

m = Hexahedron((0.1547376288700546, 0.05921552849426126, 1.7379087983473205), (0.17193069874450512, 0.05921552849426126, 1.7379087983473205), (0.17193069874450512, 0.06579503166029028, 1.7379087983473205), (0.1547376288700546, 0.06579503166029028, 1.7379087983473205),(0.1547376288700546, 0.05921552849426126, 1.754088044166565),(0.17193069874450512, 0.05921552849426126, 1.754088044166565), (0.17193069874450512, 0.06579503166029028, 1.754088044166565), (0.1547376288700546, 0.06579503166029028, 1.754088044166565))
m2 = Hexahedron((0.0, 0.0, 1.600000023841858), (0.0, 0.0, 1.754088044166565),(0.1719306987445051, 0.0, 1.7456416303231632),  (0.15682743121429854, 0.0, 1.5922955859741212), (0.0, 0.0, 1.600000023841858), (0.0, 0.0, 1.754088044166565), (0.15884325286141418, 0.06579503166029028, 1.7456416303231632), (0.1448896531793745, 0.06001526124941982, 1.5922955859741212))

m ⊆ m2

But it gives error.

ERROR: MethodError: no method matching ntuple(::Meshes.var"#apply##14#apply##15"{Meshes.Point{…}}, ::Quantity{Float64, 𝐋, Unitful.FreeUnits{…}})
The function ntuple exists, but no method is defined for this combination of argument types.

The problem arises in issubset.jl.

3 posts - 3 participants