×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# How to programmatically create this vector shape?

## How to programmatically create this vector shape?

(OP)
I have a cardboard cut-out of something I want to create.
http://38.99.165.179/kalle/vector.png

I've taken a picture and made a vector outline that I'm satisfied with.
http://38.99.165.179/kalle/vector2.png

Now to get those holes, there's a variety of ways to do it... but I want accuracy, so does anyone have a suggestion how to pull it off?

Methods to achieve the evenly spaced holes inside the piece?
1 - SLOPPY - Draw each segment by hand, using photo as a background reference.
2 - SLOPPY - Draw a rounded corner rectangle then duplicate/scale/edit it for each segment.
3 - SLOPPY - Bring prepared photo in and use Illustrator's LiveTrace feature to convert the shapes into vector. I tried, with variations. Have to tweak each individual segment after.
4 - PREFERRED - Somehow tell the computer to generate X number of objects along Y path, making them smaller and smaller.

Method 4 can be done in a number of ways...
4a-Make a rounded corner rectangle, duplicate it off in a straight row, group them together, then use something like Warp.
4b-Make a rounded corner rectangle, duplicate it off in a straight row, group the together, then use 3d extrude & rotate and extract the results.
4c-Make a rounded corner rectangle, use Transform and replicate it X times and adjust horizontal/vertical positioning and scale.

I like 4c but still not close. How can I restrict it to be along a pre-determined path (an arc)? Like text-on-path tool, but with shapes, and scaling down progressively like a warp.

I need/want precision because this is a part that will be cut out of a CNC machine for something that'll be at a tradeshow.

### RE: How to programmatically create this vector shape?

...judging by eye the holes don't all look evenly spaced to me, neither are the holes appearing to simply be scaled down versions of a master copy...

...if the holes have to be exact then you will likely struggle to be honest unless you can get access to the vector that made the die cut tool of this piece of card...

...without access to that your only real choice for "near" accuracy will be to accurate scan on a flatbed scanner and trace in my view...

andrew

============
www.apepp.info
============

### RE: How to programmatically create this vector shape?

...when I refer to trace I mean the pen tool, and not the live trace function...

andrew

============
www.apepp.info
============

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!