# methods to simplify geometry

## Recommended Posts

I`m looking for better methods to simplify this organic shape like this example i made.

New Ideas are very welcome !

Extra:

I`m looking for away to code this simple algorithm in Houdini :

or even use the "for each" node...

Group B Append point0 from Group A.

Delete Point 0 from Group A

N=number of point in group A

for C in (1 to N):

"point"= (point in groupA that have the smallest distance from the last object in groupB)

append the "point" to group B.

point number of this "point" in group B will be C

delete "point" from group A

you can see where it can be handy in my project file and many other to come.

if there is already node that can do it easily Smile i will happy to know about it.

simplfiy_geometry.hipnc

##### Share on other sites

You can use Python or maybe vex for that. However, if you have the original curve you could perhaps attribute transfer the point number, or use nearpoint()

##### Share on other sites

On second thoughts, I don't know if you simply can re-assign \$PT... In that case, perhaps a little python script like so could work:

-for last entry in list find and append nearest neighbour (that is not in list) to the list

-loop through the list and create a polygon

That way you should get a curve that fits the previous one exactly with the points sorted correctly.

##### Share on other sites

Thanks mate, i thought maybe there is more straight forward way to do it.

If some one have work-flows to simplified geometries and want to share it here , please feel welcome !

i will find time and i will implement this little sort code and will share it with you all.

B.

As I promised.

##### Share on other sites

Well done Barakooda!

##### Share on other sites

.

Edited by Barakooda

##### Share on other sites

"nearest point sort method",

little python script.

P.S: there is away to delete post in this forum to people like me who tend to do lots of mistakes? :-)

this is txt file.hip

## Create an account

Register a new account