Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Objective-C, Python, Ruby Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2010, 10:15 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 2
powerserg is on a distinguished road
Question Drawing Specs in C

My professor wants someone in class to get the mechanical drawing specs of the NYU logo [PDF version].His intention is to use those specs to create it in xcode using "C" or "Objective C". I am an artist and figured the best way was to use a program like illustrator but the program only translates points to XML. Is it possible to convert XML or reinterpret vector drawings to "C"?

Also what is the best way of tackling this problem?

The drawing should probably fit a screen of 320x460 px. Thanks!
-Sergio

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1_copy" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
	 y="0px" width="320px" height="460px" viewBox="0 0 320 460.2" enable-background="new 0 0 320 460.2" xml:space="preserve">

<path fill="#52247F" d="M169.499,32.423c4.682,10.712,23.001,56.277,19.797,64.768c0,0-32.796,29.509-45.215,52.789
	c-17.081,37.47-0.245,67.213,3.911,73.322c0,0,7.008,10.147-9.288,2.201c-27.204-11.304-48.125-36.18-46.682-68.68
	C94.75,117.7,158,61.45,165.262,32.258C166.75,25.95,168.928,31.118,169.499,32.423z"/>

<path fill="#52247F" d="M224.49,63.217c5.76,8.483,20.26,63.733,11.73,69.167C214,144.2,162.25,159.95,158.99,225.747
	c-0.245,0.489-0.647,1.554-1.711,0.489C143,204.7,140.75,172.7,152.635,150.227c11.487-20.775,31.528-34.706,46.437-52.792
	c8.799-10.999,22.437-26.938,23.464-34.461C223.438,60.325,224.49,63.217,224.49,63.217z"/>

<path fill="#52247F" d="M87.133,79.103c10.034,17.015,14.284,33.598,13.2,35.196c-9.75,18.735-19.065,37.883-13.932,62.08
	C94,207.95,111.75,217.45,132.105,229.17c0.732,0.732-0.734,1.222-1.467,1.465c-26.389,4.315-55.236-12.952-65.745-24.439
	C31.75,169.95,63.11,126.371,75.402,102.321c3.177-8.064,7.333-15.642,7.822-25.417C83.562,72.825,85.915,77.466,87.133,79.103z"/>

<path fill="#52247F" d="M255.286,184.688c-9.044,13.688-32.036,45.513-87.255,45.704c-0.976,0-2.198-0.732-2.198-1.955
	C166,213.95,169,189.45,189.296,170.268C203,153.45,259,137.2,275.326,105.5c1.956-3.179,2.69-6.843,4.887-9.777
	C280.213,95.723,287.5,133.7,255.286,184.688z"/>

<polygon fill="#52247F" points="193.45,239.004 193.394,263.601 112.043,263.631 111.877,239.113 "/>

<polygon fill="#52247F" points="173.213,271.069 156.702,424.938 147.071,425.045 132.378,270.991 "/>

</svg>
Attached Files
File Type: txt NYU_Mechanical_Drawing.txt (1.9 KB, 1 views)
powerserg is offline   Reply With Quote
Old 07-26-2010, 11:57 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 138
wahness is on a distinguished road
Default

if your professor is a CS professor, he should be able to parse the xml just fine. if you're a cs student, you should be able to parse it yourself. if you mean convert it to static drawing code, he should be able to do that too assuming he knows opengl or the core graphics drawing api or he knows the mathematical description of a bezier spline and is willing to write a bezier rasterizer.

EDIT:

oh heavens...do you guys just want to display the logo on the iphone screen?

Last edited by wahness; 07-26-2010 at 11:59 AM. Reason: didn't notice the student was an artist
wahness is offline   Reply With Quote
Reply

Bookmarks

Tags
mechanical specs, objective c, vector, vector specs, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 464
14 members and 450 guests
7twenty7, AlanFloyd, David-T, imac74, Jaxen66, logan, lovoyl, Music Man, mutantskin, Sami Gh, SLIC, solardrift, unicornleo, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,683
Threads: 94,131
Posts: 402,932
Top Poster: BrianSlick (7,990)
Welcome to our newest member, unicornleo
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0