Home
Reply
Regular Contributor
bheld
Posts: 41

Can mitering be used when sweeping an edge along a path?

I'm using api_sweep_with_options to sweep an edge along a path.  The path will always lie in the same plane as the edge.

 

I've tried the mitering options:

 

                options.set_miter(bend_miter); // default_miter, old_miter,new_miter, crimp_miter, bend_miter.
                options.set_miter_amount(d);

 

And none of the types seem to do anything.  Should they or does mitering only work when sweeping a face?

Spatial Moderator
ybiyani
Posts: 222

Re: Can mitering be used when sweeping an edge along a path?

Hello Ben,

 

Mitering only comes in picture when the path in discontinious...Is your path made of single edge or multiple edges? Please see http://doc.spatial.com/index.php/Sweeping_with_Options#Miter_Example as it demonstrates the functionality.

 

Regards,

Yogesh

Regular Contributor
bheld
Posts: 41

Re: Can mitering be used when sweeping an edge along a path?

The path is discontinous - it's created by using a sequence of api_curve_line followed by an api_make_ewire.  The profile is a different edge created by api_curve_line.

 

>> Bend miter, crimp miter and new miter may only be used for swept bodies, which become solids.

 

Perhaps sweeps with a profile of an EDGE doesn't support any sweeping???

Regular Contributor
bheld
Posts: 41

Re: Can mitering be used when sweeping an edge along a path?

Anyone?

rxu Spatial Employee
Spatial Employee
rxu
Posts: 32

Re: Can mitering be used when sweeping an edge along a path?

Yes mitering can happen when profile is an edge. We are not able to explain why it doesn't happen in your case, just based on your description. We need know more details about the configuration of the path and the profile edge. Could you attach a journal file or post a picture to show the profile and path?

Regular Contributor
bheld
Posts: 41

Re: Can mitering be used when sweeping an edge along a path?

Sorry for the delay in getting back to this.  Image of a sample path attached (always lie on the xy plane).  The sequence we use is pretty simple:

 

1. Create that path using calls to api_curve_line and then a call to api_make_ewire.

2. Create a profile (edge) using api_curve_line.

3. Use api_sweep_with_options to create sweep (with miter option set to default_miter and miter amount set appropriately).

 

 

 

 

path.JPG