[Sidefx-houdini-list] Group and cap connected lines
sidefx at trinix.ca
Mon Sep 23 23:05:34 EDT 2013
Yeah, it's not an easy one. Of course the hardest part is to identify
those points but even then you'll have to find an order the proper order
to connect them.
Maybe you can have a look at a loop based on connected points, that
continues to query next connected points until you figure out one of
them is reaching back the first point. I'm sure there's a cleaner way
though. Must be the kind of trick you can find in a book like "Graphics
Gems" or something like that.
Who knows, maybe I'll have a better idea after a night of sleep.
Vincent Fortin wrote:
> Hi François!
> Thanks for the heads up! Here's a pic of the shape whose triangles I'm
> trying to fill and the hip file if anyone wants to give it a try:
> One method I've found is to use the Join SOP with "only connected" turned
> on. It works on some of the closed shapes but disconnects others at the
> same time. Not quite reliable.
> You're right, Add SOP is probably the way to go. Only thing I'm missing is
> how to group those closed shapes!
> As I said this is no typical geometry, it's multiple poly lines merged
> together so it's got multiple primitives. Otherwise I'd bet good old
> PolyCap would do the work.
> On Mon, Sep 23, 2013 at 9:30 PM, François Duchesneau <sidefx at trinix.ca>wrote:
>> Hey Vincent,
>> How are you? You cannot attach a file on the mailing list.
>> The only thing I can think of regarding creating a polygon procedurally
>> out of points is using the Add Sop with the tab "Polygons - By group".
>> You'll probably have to figure how to isolate those points and set the
>> order of them so the polygon can be created properly.
>> Hope this helps.
>> Vincent Fortin wrote:
>>> Hi there, I'm sure this is simple to achieve but I can't wrap my head
>>> around it!
>>> See attached picture...
>>> I have 6 lines merged together and I'd like to create polygons in the
>>> that are "closed".
>>> PolyCap doesn't work here as if the method used to create this geometry is
>>> There are 12 points, 6 primitives, 12 vertices and 6 polygons.
>>> So my goal is to use PolyLoft but I still need to group the edges that
>>> the closed shape.
>>> Any pointer would be appreciated!
>>> P/S: sending a very simple scene in attachment.
>>> [image: Inline image 1]
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list