Trace bitmap as single lines to profile?

This forum is for general discussion regarding VCarve Pro
Post Reply
User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Trace bitmap as single lines to profile?

Post by llwood »

halloween-spider-web-transparent.png
I have attached an image of a spider web. It's easy to trace the bitmap to create a set of closed polygons that can be easily vcarved or pocketed. But in some cases it would work better to have single lines to profile rather than polygons. Is there any way to either:
1. Have the trace bitmap routine create lines rather than polygons, or:
2. Create single lines between the polygons, or convert the polygons to single lines that can be profiled to create a similar effect.

For example, in the attached picture of the spider web, I would like to cut with a 1/8" end mill along the center of each of the web segments to cut the web. Profiling on the polygons created by the trace bitmap routine cuts too much.

I need to import this bitmap and trim vectors before cutting. This is why profiling on the inside or outside doesn't work, because there are some closed vectors and some open vectors. It's also why pocketing or vcarving don't work.

Is there any way better than drawing the curves by hand? Any suggestions would be appreciated.

Thanks,
--Andy
Attachments
Trace bitmap question.crv
(1.08 MiB) Downloaded 198 times

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

spider on web 3.jpg
spider on web 2.jpg
spider on web 1.jpg
Here are a couple previews of the actual project that I'm trying to get done before Halloween. The .crv file is too big to upload, so I'm uploading previews instead.

Thanks,
--Andy

User avatar
dhellew2
Vectric Wizard
Posts: 1326
Joined: Thu May 22, 2008 10:14 pm
Model of CNC Machine: Legacy Artisan 72 and AVID CNC Rotary
Location: Royal City Washington

Re: Trace bitmap as single lines to profile?

Post by dhellew2 »

Is this what you had in mind?
spider web 1.png
spider web 3.png
Used trace tool and a v-bit

Or this, draw one then use circular array
spider web 4.png
Dale
You will get old if you live long enough!
Young = time, no money
Old = money, no time
Dale

User avatar
ssflyer
Vectric Wizard
Posts: 912
Joined: Wed Nov 26, 2008 8:21 pm
Model of CNC Machine: ShopBot PRSAlpha 96x60
Location: Napa County, California

Re: Trace bitmap as single lines to profile?

Post by ssflyer »

Minor comment - don't spiders have only two body segments? :D
Ron Sloan

User avatar
Mike-S
Vectric Wizard
Posts: 1123
Joined: Mon Jun 13, 2011 6:45 am
Model of CNC Machine: Joe's Hybrid 4x4 (but 3x3)
Location: Hayesville, NC

Re: Trace bitmap as single lines to profile?

Post by Mike-S »

Yeah, and the web is a spiral. The Halloween police are gunna getcha.

User avatar
dhellew2
Vectric Wizard
Posts: 1326
Joined: Thu May 22, 2008 10:14 pm
Model of CNC Machine: Legacy Artisan 72 and AVID CNC Rotary
Location: Royal City Washington

Re: Trace bitmap as single lines to profile?

Post by dhellew2 »

Another option, this is how I would create a typical Halloween symmetrical spider web (real spider webs come in many different shapes).
spider 5.png
View one: Draw a vector from the center outwards, use radial array to create 11 vectors, draw 3-point arcs between two vectors, delete remaining 9 vectors, select all then using radial array create 11 items

View two: ends of webs snapped to the same points; Draw a vector from the center outwards, use radial array to create 22 vectors, using snaps draw a vector at the end of the 1st and 3rd vectors, offset the vector towards the center the desired distance, using snaps draw 3-point arcs at the intersection of the 1st vector, center vector, and 3rd vector for each offset vector, clip and/and or delete all unused vectors, use edit then select all duplicate vectors and delete them, select all then use radial array to create 11 items (View three).

Dale
You will get old if you live long enough!
Young = time, no money
Old = money, no time
Dale

Boltz
Vectric Craftsman
Posts: 143
Joined: Tue Apr 13, 2010 4:10 pm

Re: Trace bitmap as single lines to profile?

Post by Boltz »

In answer to the original question, the only way I know of to get a good single line trace is Adobe Illustrator and a skilled operator.

User avatar
Adrian
Vectric Archimage
Posts: 14639
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Trace bitmap as single lines to profile?

Post by Adrian »

There a few packages out there that will do centre line tracing automatically. I occasionally use one called Magic Tracer made by Elgorithms but there are others some of which are free.

99% of the time I trace by hand as it gives much better results and is often faster than cleaning up an automatic image trace.

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

2 segments.jpg
ssflyer wrote:Minor comment - don't spiders have only two body segments? :D
LOL! I guess I'm showing my ignorance not only of spiders but of webs. Well, in any case, I'm may have to take some poetic license and use 3 body segments because it works out better that way. I originally had a large body segment for the abdomen, and medium-sized one for the thorax and a small one for the head, but I couldn't get the segments to go together in a way that worked. I tried having some distance between them or having them at different depths, but nothing looked right, so I did all segments the same size.

Well, if spiders have 2 body segments, I tried putting the eyes on the segment with the legs and deleting the head. What do you think of this?

--Andy

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

Thanks for all the suggestions about doing centerline tracing or creating a symmetrical spider web. The original .crv file I posted may have been misleading because I do want to create an asymmetrical spider web, as shown in this file.

One thought I had was to offset all the vectors in the web to that every set of 2 adjacent lines would roughly overlap each other. This creates an appearance that's better, but it's horribly inefficient. I started to delete segments to avoid the repetition but in so doing I realized it would be easier just to trace the thing by hand. So based on the suggestions I got here, I will do that instead.

I wasted a huge amount of time trying to save time!

Thanks,
--Andy
Attachments
Web only.crv
(1.67 MiB) Downloaded 175 times

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

Any of us who contributed to this post could now get a job in web design. :wink:

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

spider on web.jpg
As a result of all the comments and advice here, I redid both the spider and the web. Happy Halloween!!

PaulRowntree
Vectric Wizard
Posts: 1687
Joined: Sun Oct 24, 2010 7:28 pm
Model of CNC Machine: homebuilt 4'x2' (Mach3+G540)
Location: Guelph, Ontario
Contact:

Re: Trace bitmap as single lines to profile?

Post by PaulRowntree »

Looks good Andy! But why again wouldn't V-carving work for you? If the spider is the issue, he could be separately cut and placed on the web as a physical piece.
Paul Rowntree
WarpDriver, StandingWave, Topo and gadgets available at PaulRowntree.weebly.com

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

PaulRowntree wrote:Looks good Andy! But why again wouldn't V-carving work for you? If the spider is the issue, he could be separately cut and placed on the web as a physical piece.
Paul, the spider was the issue. I didn't want the vbit to cut into the spider. True, it could be cut separately, but I was afraid that since the legs are pretty long and thin, that they might have a tendency to break off if cut separately. Cutting it all as one piece eliminates this weakness.

User avatar
llwood
Vectric Wizard
Posts: 392
Joined: Sun Nov 18, 2012 5:07 pm
Model of CNC Machine: Legacy Maverick
Location: Dillsburg, PA
Contact:

Re: Trace bitmap as single lines to profile?

Post by llwood »

Thanks for all the input I got here. We got this cut in time for Halloween and I put some pictures on the gallery here:
http://forum.vectric.com/viewtopic.php? ... 57#p148257

Thanks,
--Andy

Post Reply