You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I have the following problem. I have a bunch of meshes to which I want to apply some random deformations using the FFD transformer. Basically, I position the vertices of my surface mesh somewhere in space and initialize the FFD object such that the control points lie exactly on the bounding box of the object. In other words, control points are also the bounding box of my mesh.
Presumed bug
I have noticed that points that lie exactly on plane of that bounding box do not deform as they should. The opposite, they do not deform at all. This creates weird looking deformation patterns, as shown in image below.
To Reproduce
Here is a code to reproduce the similar error, but with random points instead. Points marked in orange are the ones that do not deform.
`
# Import modules
import numpy as np
import pyvista as pv
from pygem import FFD
Expected behaviour
I would expect all the points to deform according to some rules defined in the FFD. Am I understanding this wrong, of this this a bug in the code?
Best regards,
Marko
The text was updated successfully, but these errors were encountered:
Dear Marko Leskovar,
I tried to run your code, and it seems to me that is working as it should. The only points that are not moved are on the boundary on the bounding box. Points on the boundary of the bounding box do not move because they correspond to the zeros of the Bernstein Polynomials. Furthermore the amount of deformation is continuous with respect to the distance from the control point that is moved. So to get meaningful deformations everywhere it is suggested to move more than one control point.
I am available if you have further doubts.
Best regards,
Guglielmo
Dear PyGem Team.
Background
I have the following problem. I have a bunch of meshes to which I want to apply some random deformations using the FFD transformer. Basically, I position the vertices of my surface mesh somewhere in space and initialize the FFD object such that the control points lie exactly on the bounding box of the object. In other words, control points are also the bounding box of my mesh.
Presumed bug
I have noticed that points that lie exactly on plane of that bounding box do not deform as they should. The opposite, they do not deform at all. This creates weird looking deformation patterns, as shown in image below.
To Reproduce
Here is a code to reproduce the similar error, but with random points instead. Points marked in orange are the ones that do not deform.
`
# Import modules
import numpy as np
import pyvista as pv
from pygem import FFD
Expected behaviour
I would expect all the points to deform according to some rules defined in the FFD. Am I understanding this wrong, of this this a bug in the code?
Best regards,
Marko
The text was updated successfully, but these errors were encountered: