# Issubset gives error for this Hexahedron

**URL:** https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346
**Category:** Visualization
**Tags:** meshes
**Created:** [October 21, 2025, 8:46pm UTC](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346 "2025-10-21T20:46:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)
#### Post date: [October 21, 2025, 8:46pm UTC](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346/1 "2025-10-21T20:46:57Z")

</div>

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

```julia-auto
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](https://github.com/JuliaGeometry/Meshes.jl/blob/3e2c3dd1c6d0eabbad40e468e670f6719e7359be/src/predicates/issubset.jl#L10).

---

<div class="post-metadata">

### Author: ![abraunst](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraunst/32/6880_2.png) [@abraunst](https://discourse.julialang.org/u/abraunst)
#### Post date: [October 22, 2025, 8:28am UTC](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346/2 "2025-10-22T08:28:46Z")

</div>

Seems a bug in the [Meshes.jl](https://github.com/JuliaGeometry/Meshes.jl) package, you should open an issue there. Best!

---

<div class="post-metadata">

### Author: ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)
#### Post date: [October 22, 2025, 1:07pm UTC](https://discourse.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346/3 "2025-10-22T13:07:12Z")

</div>

For future reference:

> <https://github.com/JuliaGeometry/Meshes.jl/issues/1260>
>
> In this code m ⊆ m2 should output either true or false. See this https://discour…se.julialang.org/t/issubset-gives-error-for-this-hexahedron/133346
> 
> \`\`\`
> 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\](https://github.com/JuliaGeometry/Meshes.jl/blob/3e2c3dd1c6d0eabbad40e468e670f6719e7359be/src/predicates/issubset.jl#L10).
