Converting a curve from 1 prim to lots of prims

   8478   10   3
User Avatar
Member
196 posts
Joined: July 2005
Offline
Think I'm being stupid here…

I want to convert a polygon curve ( 1 poly, 1 prim, 200 points )

to…

another polygon cuvre ( 200 polys, 200 prims, 200 points ).

(bit confused here.. I thought in polys edges and surfaces had to be primitives)

Cheers
H
Henster
User Avatar
Member
2199 posts
Joined: July 2005
Online
I think this is quite tricky. I can only think of two ways to do it. Neither of which are very straight forward. If I understand you correctly you want point 0-1 to become poly 0, points 1-2 to become poly 1, points 2-3 to become poly 2, and so on……

In which case you would only end up with 199 polys. The easiest way I can think of to do this is to make a copy of your curve, delete the first point and add a new point on the end. Then skin the two curves together in columns.
Not in front of Houdini but I think that should do the trick.
The trick is finding just the right hammer for every screw
User Avatar
Member
7725 posts
Joined: July 2005
Offline
My solution took: 1 delete sop, 2 add sops, 1 merge sop
User Avatar
Member
136 posts
Joined: July 2005
Offline
Try Carve SOP:

First U: 0
Second U: 1
Breakpoints mode
Cut at all internal U breakpoints : On
User Avatar
Member
2199 posts
Joined: July 2005
Online
edward
My solution took: 1 delete sop, 2 add sops, 1 merge sop

explain…. :?
The trick is finding just the right hammer for every screw
User Avatar
Member
2199 posts
Joined: July 2005
Online
AndrewVK
Try Carve SOP:

First U: 0
Second U: 1
Breakpoints mode
Cut at all internal U breakpoints : On

Cool… nice one
The trick is finding just the right hammer for every screw
User Avatar
Member
196 posts
Joined: July 2005
Offline
I'm not getting 100% accuracy off the carve sop method… Not quite enough primitives. Two chunks of line are being treated as one..

nice idea though

H
Henster
User Avatar
Member
1529 posts
Joined: July 2005
Offline
Heya Henster,

Give the following a try.

Append a delete SOP to your curve. Set delete method to “Delete Non-Selected”

put `param(“copynum”,0)`-`param(“copynum”,0)+1` in the pattern field.

Append a copy sop to the delete sop.

flip over to the stamping page, and type “copynum” in the var1 field, and $CY in the param1 field.

Enable stamping. Set number of copies to 200.

Does that work?

Cheers,

Gene
User Avatar
Member
196 posts
Joined: July 2005
Offline
Hoorah! it works!

very nice. thanks gene.

Just a side note to anyone who tries this… ( I'm sure they'll be queueing up) remember to set the delete sop to points not prims.

Cheers
H
Henster
User Avatar
Member
44 posts
Joined:
Offline
How can one reverse this process ? I have medical model of liver veins that consists of zilion of two-point curves. Problem is that most of them are branched, therefore ConvertSOP doesnt want to work. Any sugestions ?
User Avatar
Member
7725 posts
Joined: July 2005
Offline
For far does Fuse get you?
  • Quick Links