Rails is using wrong point order, can't figure out why!

   1593   2   0
User Avatar
Member
24 posts
Joined: 10月 2014
Offline
Hi,

When I create curves from scratch, my rails node works perfectly.

When when I generate those curves procedurally (extracting from edges in separate pieces of geometry), I can't get it to work, even though everything (point count on each rail, point order) looks right to me.

Instead of connecting the cross section from the first point in one rail to the first point in the second rail, it's connecting the first point in one rail to the last point in the other! Sorting the rail points seems to have zero effect.



I've attached a screenshot showing the point numbers on each rail (after merging), and a hip example file with the problem. I froze the procedural curves so I didn't have to include the geometry they're coming from. If you replace the procedural rails with the hand-created ones, you can see how it works properly.

Thanks, any help is really appreciated. I really want to keep the whole thing procedural!
Edited by Ethernaut - 2017年12月24日 00:55:16

Attachments:
rails_pointOrder.hiplc (85.2 KB)
Screen Shot 2017-12-23 at 9.38.54 PM.png (655.4 KB)

User Avatar
Member
620 posts
Joined: 11月 2013
Offline
They have different vertex order. You can add a Reverse SOP under resample4 node.
User Avatar
Member
24 posts
Joined: 10月 2014
Offline
Ah, so simple… beginner's mistake.
Thanks, and happy holidays!
  • Quick Links