Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New example: transformed mesh image #51

Open
asinghvi17 opened this issue Jun 24, 2024 · 0 comments
Open

New example: transformed mesh image #51

asinghvi17 opened this issue Jun 24, 2024 · 0 comments

Comments

@asinghvi17
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant