Deform a Surface with respect to an object placed on it

Hello,
I have a flat surface and a box as shown in the picture below. I want to form a new surface such that the flat surface deforms with respect to the box. (It goes down like creating an impression).
How can this be done?

Thanks
Kai

Hi Kai -
There is very little information in your post. Provided that the red surface has normals pointing up, the BooleanDifference command would create something like that…
-wim

Hello Wim,
I want to achieve something like this. The surface has sunk or deformed because of the box.


Thanks
Kai

Use Drape command.

Thanks! but I tried using drape command, but I did not get the results I was looking for. Secondly, I also want to cause the above deformation using a script.

Maybe the flat surface had too few or too many control points or wrong degree?

SoftMove command gives you more flexibility to bend the flat surface.

  1. Extract one face/side of the box that is parallel to the flat surface.
  2. Use ChangeDegree command or Rebuild command to optimize total number of control points and degree of the flat surface.
  3. Turn on all control points of the flat surface. (Use PointsOn command or F10key.)
  4. Use SoftMove > Surfaces command to move the control points of the flat surface with the extracted face.

If the bent surface is not perfect, use SoftEditSrf command to fix it.

Hi Kai -

That should probably have been in the first sentence of your original post?
You also hadn’t categorized your post and I can move it to a different category so that the right people see this, but what kind of script are you talking about?
-wim

Hello Wim,
I am new to Rhino and the forum. C# (using RhinoCommon) or a Grasshopper script that may be helpful ? My ultimate goal is to make a plugin for it.
-kai