How to I extrude points to make edges ?

   7778   9   2
User Avatar
Member
1 posts
Joined: May 2018
Offline
Hello everyone, I'm new here and also quite new with Houdini.

I have a bunch of points with normals and I would like to extrude them into edges along the direction of their normals. How do I do that in Houdini ?

Thank you for your time.
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
try polyextrude
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
45 posts
Joined: Nov. 2019
Offline
Could you please go in detail ? I tried to scatter some points and then give them normals in order to extrude them but adding poly extrude does not return edges as expected.

Thanks.
User Avatar
Member
7734 posts
Joined: Sept. 2011
Offline
Are the points connected? polyextrude only works on polygonal geometry, not disconnected points.
User Avatar
Member
45 posts
Joined: Nov. 2019
Offline
jsmack
Are the points connected? polyextrude only works on polygonal geometry, not disconnected points.

The points are disconnected, I was looking for a may to build edges based and scattered points with normals.

If poly extrude does not work what are my options ?

Thanks.
User Avatar
Member
258 posts
Joined: July 2006
Offline
in the attribute wrangler there is an example for crating hair . Have look at that, basically. you will need to duplicate your point, offset it along your normal, then build a line in between.
Head of CG @ MPC
CG Supervisor/ Sr. FX TD /
https://gumroad.com/timvfx [gumroad.com]
www.timucinozger.com
User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
The points are disconnected, I was looking for a may to build edges based and scattered points with normals.

If poly extrude does not work what are my options ?


After your scatter you can create a group of points you will want for your ‘edge’.

Then use an add SOP with the folder TAB ‘By Group’ selected, and specify the group name you created beforehand, putting it in the Add nodes Group parameter.

Then you now have a polyline which you can use with the polyextrude. If you want too, just after the add node you can put in a Resample node.
Edited by BabaJ - Jan. 7, 2020 13:59:32
User Avatar
Member
190 posts
Joined: April 2009
Offline
Here's an example for that.
Scattered some points, added a randomized Normal, gave it a number-attribute, displaced the points along a normal with a adjustable amount, the merged them back with the original points, and with an add sop, using “number” as group by attribute, tada.
Hope this helps.
Cheers,
Rudi

Attachments:
GrowPolyFromPointWithNormal.hip (187.0 KB)

User Avatar
Member
45 posts
Joined: Nov. 2019
Offline
Thanks everyone, duplicating with an ID and using the add node with the By Group option did the the trick for me.

Thanks again.
User Avatar
Member
130 posts
Joined: June 2016
Offline
Even simpler if you copy lines ⚟ on points. You can have lot more control on the direction and length of the lines.
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
  • Quick Links