Connect corresponding points in Vex

   1312   2   2
User Avatar
Member
33 posts
Joined: March 2014
Offline
Thought this would be a good simple starting Vex learning question as I branch out.

I have two curves with the same number of points with their own named group.

example:

Group:Curve_A (points 0-20)
Group:Curve_B (points 0-20)

What would be the most straight forward way to ( using VEX) connect a line from each point of CurveA to their corresponding point in CurveB.

A0 to B0 / A1 to B1 / A2 to B2 etc.

I'm guessing I'd start with a point wrangle with CurveA into input one and CurveB into the second.

Thanks!
User Avatar
Member
493 posts
Joined: July 2005
Offline
If you have two groups you can isolate the points and create for each point pair a new prim. If you just want the connections (without the curves), you start with new wrangle and use the curves as second (third) input. In VEX you just add both points (of the point pair) and one prim, where each point becomes one vertex.

Attachments:
connect_points_between_prims.hipnc (188.1 KB)

User Avatar
Member
33 posts
Joined: March 2014
Offline
THANKS!

That makes sense and helps a lot a.
  • Quick Links