Join Open Vectors

This section is for general discussion about Gadgets

Join Open Vectors

Postby jakumins » Wed Jun 21, 2017 10:28 pm

I was wondering if anyone has created a gadget to join open vectors or knows if there is a lua function to do so?
jakumins
Vectric Apprentice
 
Posts: 5
Joined: Tue Jun 20, 2017 1:02 am
Model of CNC Machine: Shop Bot

Re: Join Open Vectors

Postby CrowsWW » Wed Jun 21, 2017 11:08 pm

if you have Vcarve Pro it is on the Edit Objects.

see picture I put a red line around the icon.
Attachments
New Picture (2).jpg
Troy Crow
Crow's Woodwork's
http://www.crowswoodworks.com
I have a day job to support my wood habit!
User avatar
CrowsWW
Vectric Apprentice
 
Posts: 79
Joined: Wed Jun 27, 2012 7:10 pm
Location: Palmer, Alaska USA
Model of CNC Machine: ShopSabre 4896

Re: Join Open Vectors

Postby jakumins » Wed Jun 21, 2017 11:19 pm

Yes I know how to do it manually, but I want aspire to do it for me via a gadget.
jakumins
Vectric Apprentice
 
Posts: 5
Joined: Tue Jun 20, 2017 1:02 am
Model of CNC Machine: Shop Bot

Re: Join Open Vectors

Postby jakumins » Wed Jun 21, 2017 11:25 pm

I guess let me clarify, I am looking to make a gadget that selects all vectors on a layer, joins the vectors then selects the next layer....and so on.
jakumins
Vectric Apprentice
 
Posts: 5
Joined: Tue Jun 20, 2017 1:02 am
Model of CNC Machine: Shop Bot

Re: Join Open Vectors

Postby Rcnewcomb » Thu Jun 22, 2017 12:38 am

You would need to write your own based on your rules for how vectors should be joined.

For example, The vectors may be joined, but not be what you had in mind.
Unjoined.JPG
JoinedMess.JPG
- Randall Newcomb
10 fingers in, 10 fingers out - another good day in the shop
User avatar
Rcnewcomb
Vectric Wizard
 
Posts: 2684
Joined: Fri Nov 04, 2005 5:54 am
Location: San Jose, California, USA
Model of CNC Machine: Shopbot, CAMaster

Re: Join Open Vectors

Postby jakumins » Thu Jun 22, 2017 1:47 am

The shapes I would be joining would be simple closed (not recogonized by aspire as closed) shapes, with a tolerance less than 0.01 in.

My question basically is what lua script function can I use to join the vectors?
jakumins
Vectric Apprentice
 
Posts: 5
Joined: Tue Jun 20, 2017 1:02 am
Model of CNC Machine: Shop Bot

Re: Join Open Vectors

Postby Adrian » Thu Jun 22, 2017 7:59 am

There isn't one function that will do it. As Randall says you have to write code that uses a series of different functions to do it even if all you want to do is what you describe. Basically working through the contours, finding the gaps, appending onto a new vector with the points adjust to be the same etc. That's the only way I know to do it.

I use scripts to automate the Aspire UI itself when I want to do something like that as it's quicker and easier than creating the LUA code.
User avatar
Adrian
Vectric Archimage
 
Posts: 7405
Joined: Thu Nov 23, 2006 2:19 pm
Location: Surrey, UK
Model of CNC Machine: ShopBot PRS Alpha 96x48

Re: Join Open Vectors

Postby jakumins » Thu Jun 22, 2017 12:31 pm

Thanks Adrian!

That's kind of what I was thinking, I was just hoping there was an easier way.
jakumins
Vectric Apprentice
 
Posts: 5
Joined: Tue Jun 20, 2017 1:02 am
Model of CNC Machine: Shop Bot


Return to Gadgets - General

Who is online

Users browsing this forum: No registered users and 3 guests