-
For debugging, I would like to offset a 3D Mesh by moving it in 3D space by a distance given by delx, dely, and delz. Are these the only two steps that are required or is something else needed?
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
If the mesh is high order, the vertex coordinates don't matter (the The best way in general is to use If you have to do it once, a convenient way may be to useMesh Explorer by first modifying its internal |
BetaWas this translation helpful?Give feedback.
All reactions
-
As@tzanio mentioned, the best way to do this is with VectorFunctionCoefficienttransf_coeff(3, [delx,dely,delz](const Vector &x_in, Vector &x_out){ x_out[0] = x_in[0] + delx; x_out[1] = x_in[1] + dely; x_out[2] = x_in[2] + delz;});mesh.Transform(transf_coeff); |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1