Create a dent (Tips and tricks needed)


#1

Hi,

Need some tips how I can create a function to make a dent in a surface.

I can do the following:

  • Ask the user to select some ControlPoints
  • Let them give a number
  • Move points in Z- direction

But then the selection will be moved and wont be “smooth”, because the inner points should be a bit more moved then the outer points. See example below:

Is there another way too easily make a dent with user input (like selection and dept)?

Any tips or tricks are welcome :smile:

P.S. I code in vb.net so from rhinoscript too rhinocommon, everything is welcome :slight_smile:


#2

Hi Jordy, i´ve written something attractor related for meshes long time ago, but speaking in Rhino commands, you could try to _SoftMove all control points of your surface using either a surface for your boundary or a curve as i did in the example below.

jordy.3dm (179.9 KB)

c.


#3

Hi Clement,

Thanks for your input :slight_smile: works good :slight_smile: Is it also possible too use an oval shape instead of a circle?

Jordy


#4

Hi Jordy, not that i know of. But it could be an interesting addition to use custom shapes instead :smile:

c.


#5

Indeed, because I use custom shapes 90% of the time.

@dale do you know if this is possible? or if I can create somethings like this myself with vb.Net?


(Dale Fugier) #6

There is no equivalent to SoftMove in the SDK. You might be able to come up with something on your own - something that moves inner control points a percentage of the outer control points.

@rajaa, any suggestions for @jordy1989?


(Rajaa Issa) #7

jordy1989, SoftMove alloes you to select not only a point, but also curves and surfaces as a base. This should help you use custom shapes to control the move.


Pause script until Enter key is pressed
#8

Dont really know how to do this “Smooth” I do the following:

Have my srf and curve:

Pointson and selboundary

Use the command SoftMove and click in the commandbar on Points to Move from, curves
Then a Circle appears. not in custom shape.

Result:

But now on the curve the points are moved. But not the inner part.

Am i doing something wrong?


#9

You must create a planar surface from curve and select the surface option using the command SoftMove
Ciao Vittorio


#10

But when I do that this happens:

It is not softmove anymore. It gets the same result as if I would use move or PageUp/Down


(Rajaa Issa) #11

I would try to vary the inner surface distance from the base (it does not have to be planar).
See the following:


#12

So I first have to make a surface that is not planar with softmove to make a dent with softmove in another surface…


#13

I do it now as followed:

I select the points. Move them and smooth with factor 1.0. :slight_smile: