Sweep Bug

Next
 From:  Simon (GRIMMY)
11422.1 
Hi, I have used Moi for years and practically never encountered a bug which is why I was surprised today when I tried to do a sweep and this happened...

Basically when I click pointy end the mesh goes crazy. I also notice the same happen when I try creating any sweep with two or more profiles.

Im sure this never used to happen. Im using V4. Dec-22-220

Basically it seems I can do a sweep with a nice smooth rail curve but if I use a simple curve with hard points it doesn't work and I get these weird results.

Oddly, I just tried exactly the same in v5 and I get exactly the same result.?!?!?

What happened?

If you look at the second image the sweep tool seems to have gone nuts.?!?! Can anyone help?

EDITED: 1 Jun 2024 by GRIMMY

Image Attachments:
Size: 346.6 KB, Downloaded: 33 times, Dimensions: 440x762px
Size: 180.5 KB, Downloaded: 30 times, Dimensions: 390x408px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
11422.2 In reply to 11422.1 
Hi Simon, it looks like a bug but it's probably a difficult case to fix.

When you have sharp corners in the path curve it means that the sweep is done making an initial base section along each segment and then the those sections are extended and intersected with each other to make mitered corners.

This works well when the profile curve is the same shape throughout the path. But when you use "pointy end" that puts another profile at the end of the curve and the sweep's profile shape will morph between those as it travels along the sweep.

But now with the shape being tapered along each base section, when they are extended they don't necessarily intersect with each other cleanly.

The weird results you see are coming from the extended areas.

Or to show it visually, it's like this - a weird result like this:




Starts initially with these base sections which are then extended:



It's kind of hard to figure out what to do in this kind of case. It's sort of a "don't do that" situation.

Probably the main alternate way would be for it to generate some slanted profiles at the sharp corners and then do the sweep between those slanted profiles and not do any extensions. The problem with this is that there will be a kind of shearing in the surface generated. The extension method makes for an accurate proper tube base surface.

For now I'd recommend using 2 rail sweep for making a shape like this instead of 1 rail sweep (turn off "Maintain height" option):





Or you can use Loft with "Loft style = Straight" with a point object as the end profile:





- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All