Sweep Profile Line Along To Curve

   2788   3   0
User Avatar
Member
41 posts
Joined: Dec. 2019
Offline
How to Sweep Cross section allows to Curve ,Like max quick and convenient applying of profiles to shape with a modifier Sweep.



Attachments:
Sweep_H18.hipnc (132.7 KB)

User Avatar
Member
504 posts
Joined: July 2005
Offline
Hi,

the cross section has to be in the center. If this not the case, you can always transform the cross section to the center. In your case, just substract the first point.

In a point wrangle something like this:

@P -= point(0, 'P', 0);
User Avatar
Member
41 posts
Joined: Dec. 2019
Offline
Thanks @Aizatulin For help
It's work fine for corner angle,This code wrangle I try for other like spirale curve for stair,Pls someone help me how can fix that.

Attachments:
Stair_Sweep.rar (516.0 KB)

User Avatar
Member
504 posts
Joined: July 2005
Offline
You can redefine the orientation on the back bone for example. First you can apply orientation along the curve, to get the tangent and up vector. But the up vector should be (0,1,0). In this case the tangent has the be recalculated using the double cross product with the new up vector and the old tangent.

@edit: or even easier -> avoiding the cross product -> swap up and N in the orientation node and set the new normal to (0,1,0).
Edited by Aizatulin - Nov. 8, 2020 08:52:22

Attachments:
Stair_Sweep_mod.hipnc (158.6 KB)
Stair_Sweep_modA.hipnc (166.4 KB)

  • Quick Links