Dividing up a line script?

Next
 From:  rhodesy
2489.1 
Is there a script out the that will divide up a line (straight or curved) into either equal sections or specified distances? Even better would be a way to facet a curve at the same time. I had a look at quicksplit but i don't think it's quite the same. Im thinking this would be useful for curved glazing systems which will be faceted rather than smooth.

Cheers
Rob
  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
Next
 From:  PaQ
2489.2 In reply to 2489.1 
Hi Rob,

Until a script is done, did you think to

- Add a point on your curve
- Create a Array/along curve (where you can either choose a distance or a number of clones)
- Trim the curve with all the points created.

Not as fast as a script, but quite easy to do.

EDITED: 3 Feb 2010 by PAQ

  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
Next
 From:  Michael Gibson
2489.3 In reply to 2489.1 
Hi Rob, yup the way PaQ shows above is how to currently get that done in MoI.

In the future I would like to have some more bundled up way to do that, maybe some option more directly integrated into the Trim command. But I don't think that I will be able to get that in for v2 though.

- 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

Previous
Next
 From:  rhodesy
2489.4 
Thanks PAQ. Not quite the accuracy I was after as a fool proof method. The array could work OK for a single regular arc so will give that a go but could run into problems with more irregular curves. So im right in thinking there isn't a way to measure a distance along a curve?

Look forward to an enhanced trim tool.

Cheers for your help again,
Rob
  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
Next
 From:  Michael Gibson
2489.5 In reply to 2489.4 
Hi Rob -

> The array could work OK for a single regular arc so will give that
> a go but could run into problems with more irregular curves.

No, it should be fine on irregular curves - the way Array curve works is by measuring distance as traveled along the curve...

I'm not sure why you mention arcs here? Are you thinking about ArrayCircular instead of ArrayCurve?


> So im right in thinking there isn't a way to measure a distance along a curve?

There is a way - it's an option in ArrayCurve like PaQ mentioned above...

When you do an ArrayCurve, you get these options for how to control it:



There are 2 modes to it - you can either enter a number of items, and the curve is evenly divided into that many segments (the length of the segments is shown in the Distance: entry right below it), or you can enter a distance and items will be replicated by traveling that distance along the curve, creating as many as can fit before it runs off the end of the curve. The number that did fit will be shown in the "Item count".

So when you enter a value for either of those, the other one will be calculated in response.

But when you enter a distance there you are entering a distance along the curve, just make sure to place your point object (Use the Point command under Draw Curve / More / Point) at the start of the curve and it will be all set up with accurate results.

Let me know if you need a more step-by-step explanation...

- Michael
Attachments:

  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
Next
 From:  rhodesy
2489.6 
Of course im being an idiot!! Completely forgot about that! Thanks a lot for your help.
  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
2489.7 In reply to 2489.6 
No sweat Rob! :) Let me know if you are still stuck after giving it a try.

- 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