Skip to content

New example: transformed mesh image #51

@asinghvi17

Description

@asinghvi17

My code:

SPHERICAL_TRANSFORM_FUNC = Makie.PointTrans{3}() do point
    θ, ϕ, r = point # we interpret this way so that e.g. surface works correctly.
    return Point3(
        (r + 1) * cos(ϕ) * sin(θ),
        (r + 1) * sin(ϕ) * sin(θ),
        (r + 1) * cos(θ)
    )
end

using GeoMakie
f, a, p = meshimage(-π..π, 0..π, rand(10, 10); z_level = 1, axis = (; type = LScene,))
p.transformation.transform_func[] = SPHERICAL_TRANSFORM_FUNC
f

test
Need to clean this up and upload!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions