- CGO`HRZEMI@9OO]T%1$AIJV.png (18.81 KiB) Viewed 14944 times

## How to make hill smoothly ?

### How to make hill smoothly ?

I have make a hill with the RUBE, and How to make the hill smooth? It is chainShape. I know make the hill smoothly, I have to add more vertex, but is there a way to Automatic generate some more vertex make the hill smoothly ? Thank you

### Re: How to make hill smoothly ?

Hi, sir. I found a algorithm ： http://www.deluge.co/?q=benzier-curves

and I put the chianshape vertex into the algorithm
and before the algorithm, the hill like this:
and after the algorithm, the hill like this:
And How to use the algorithm in the RUBE editor ? please help me. Thank you, sir. I am waitting for your reply.

and I put the chianshape vertex into the algorithm

Code: Select all

```
ArrayList<SplineVertex> arrayList = new ArrayList<SplineVertex>();
for (int i = 0; i < vertexs.size / 3; i++){
arrayList.add(new SplineVertex(
new Vertex(vertexs.get(i * 3 + 1).cpy()),
new Vertex(vertexs.get(i * 3).cpy()),
new Vertex(vertexs.get(i * 3 + 2).cpy())
)
);
}
spline = new Spline(arrayList);
spline.refine(0);
```

### Re: How to make hill smoothly ?

Maybe the 'Smooth vertices' or 'Bevel edges' scripts might be useful?

Smooth vertices: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=33m52s

Bevel edges: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=37m20s

Smooth vertices: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=33m52s

Bevel edges: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=37m20s

### Re: How to make hill smoothly ?

HI, The Smooth line is good. But I have to add Vertexs by Manually, and then use the 'Smooth line'. I should be ok. Thank youiforce2d wrote:Maybe the 'Smooth vertices' or 'Bevel edges' scripts might be useful?

Smooth vertices: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=33m52s

Bevel edges: https://www.youtube.com/watch?v=K-VzlEtXdJM#t=37m20s