Navigation
mesh
mesh(x, y, z)
mesh(mesh_object)
mesh(x, y, z, faces)
mesh(xyz, faces)
Plots a 3D or 2D mesh. Supported
mesh_object
s include
Mesh
types from
GeometryBasics.jl
.
using GLMakie
vertices = [
0.0 0.0;
1.0 0.0;
1.0 1.0;
0.0 1.0;
]
faces = [
1 2 3;
3 4 1;
]
colors = [:red, :green, :blue, :orange]
scene = mesh(vertices, faces, color = colors, shading = false)
using FileIO
using GLMakie
brain = load(assetpath("brain.stl"))
mesh(
brain,
color = [tri[1][2] for tri in brain for i in 1:3],
colormap = Reverse(:Spectral),
figure = (resolution = (1000, 1000),)
)
© Makie.jl. Last modified: October 16, 2021. Website built with
Franklin.jl
and the
Julia programming language
.
These docs were autogenerated using Makie: v0.15.3, GLMakie: v0.4.7, CairoMakie: v0.6.6, WGLMakie: v0.4.7