Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Sweep modifier applying interpolation on straight lines

AgustinLanus
Contributor

Sweep modifier applying interpolation on straight lines

AgustinLanus
Contributor
Contributor

As it can be seen on the image, for some reason the sweep modifier is also applying interlpolation on straight lines, which generally doesn't happen.

 

This is pretty important for me because this proyect I'm working on is very optimized for phone usage and having so many lines unnecessarily divided takes a big toll on performance.

 

Any help on the subject is greatly appreciated!

 

0 Likes
Reply
Accepted solutions (1)
872 Views
4 Replies
Replies (4)

miledrizk
Advisor
Advisor

Hi,

 

The reason is that you have unnecessary vertices,

If you go to the vertex sub-object level of your Editable Spline path shape,

You'll see that you have a vertex on each location where you see a segment after applying the sweep,

So the solution is to weld your vertices where you have a straight path.

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)

AgustinLanus
Contributor
Contributor

Thank you for you answer! Unfortunately, even though that would make sense, they aren't subdivided at all.

 

It also seems like it's messing with small curves like this one (left object is my spline, right one is just an example one which is working correctly)

 

I believe that something related to the vertex rotation is messed up on these splines, but I have no idea what it could be or how to fix it.

 

I'm also uploading this file I'm working on if you want to check it directly

 

0 Likes

domo.spaji
Advisor
Advisor
Accepted solution

If you set interpolation steps without "optimize" checked than you will have same number of divisions no matter of curvature.

You have to set desired interpolation on spline path (for path) and in Sweep mod. (for section)

0 Likes

miledrizk
Advisor
Advisor

Just set your interpolation to Optimize

spline.JPG

Like @domo.spaji said, you had the interpolation set to 4, and this will force each segment to be divided 4 times.

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
0 Likes