Skip to content

Add support for vertex color in 3D regular grid #1250

@raman-maker

Description

@raman-maker

error("not implemented")

using GLMakie, Meshes
l =Meshes.Point(0,0,1.6)
h =Meshes.Point(0.172,0.065,1.75)
dbb = RegularGrid(l, h, dims = (10, 10, 10))
viz(dbb, color=1:nelements(dbb), alpha=0.4, showsegments=true)

work fine while

viz(dbb, color=1:nvertices(dbb), alpha=0.4, showsegments=true)

gives

ERROR: not implemented
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] vizgrid!(plot::Plot{viz, Tuple{CartesianGrid{𝔼{…}, Cartesian3D{…}, 3, Tuple{…}}}}, ::Type{𝔼{3}}, ::Val{3}, ::Val{3})
@ MeshesMakieExt ~/.julia/packages/Meshes/Ncjx3/ext/grid/cartesian.jl:84

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurehelp wantedExtra attention is neededvizIssue with visualization recipes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions