Skip to content

How to interpolate f(x,y,z) to f(x,z,y) (I think) #3705

Discussion options

You must be logged in to vote

Hi Ed,

You can get an extruded mesh in a different coordinate direction by modifying its coordinates. E.g. if m is a mesh:

x = SpatialCoordinate(m)
m.coordinate.interpolate(as_vector((x[1], x[0])))

m will now be flipped over.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ethrelfall
Comment options

Answer selected by ethrelfall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants