<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GilesBathgate &#187; CAD</title>
	<atom:link href="http://www.gilesbathgate.com/tag/cad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gilesbathgate.com</link>
	<description>Things I want to tell the world</description>
	<lastBuildDate>Wed, 14 Dec 2011 08:23:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OpenSCAD</title>
		<link>http://www.gilesbathgate.com/2010/04/openscad/</link>
		<comments>http://www.gilesbathgate.com/2010/04/openscad/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 21:18:13 +0000</pubDate>
		<dc:creator>Giles Bathgate</dc:creator>
				<category><![CDATA[Reprap]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gilesbathgate.com/?p=415</guid>
		<description><![CDATA[I have been hacking around with OpenSCAD. First I added an exponent operator to the language because I felt that writing pow(x,2) was a bit more cumbersome than x^2 . Then I added a few more operators like a component-wise multiply and component-wise divide I wanted these to make it easier to translate points so [...]]]></description>
			<content:encoded><![CDATA[<p>I have been hacking around with OpenSCAD. First I added an exponent operator to the language because I felt that writing pow(x,2)  was a bit more cumbersome than x^2 . Then I added a few more operators like a component-wise multiply and component-wise divide I wanted these to make it easier to translate points so I could use them as datums. I even implemented an experimental rotation operator. Then I decided to get a little bit more adventureous. What I wanted to do was make the OpenSCAD editor have syntax highlighting. Investigating doing this using <a href="http://qcodeedit.edyuk.org/">qcodeedit</a> is on the OpenSCAD todo list, so I thought I would give it a try<br />
<a href="http://www.gilesbathgate.com/wordpress/wp-content/uploads/2010/04/openscad-qcodeedit1.png"><img class="aligncenter size-medium wp-image-421" title="openscad-qcodeedit" src="http://www.gilesbathgate.com/wordpress/wp-content/uploads/2010/04/openscad-qcodeedit1-300x203.png" alt="" width="300" height="203" /></a><br />
I was quite pleased with the results and it wasn&#8217;t to complex to implement, QCodeEdit&#8217;s QEditor is <strong>almost</strong> a drop in replacement for QTextEdit. I created a wrapper which allows somone compiling the source to choose which editor they want to use with compile time flags. In fact, to disable QCodeEdit support all one has to do is uncomment out the line with</p>
<pre>CONFIG += qcodeedit</pre>
<p>in openscad.pro</p>
<p><strong>EDIT:</strong> All the changes have been merged into the main github repository which can be checked out using</p>
<pre>git clone https://github.com/openscad/openscad.git</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gilesbathgate.com/2010/04/openscad/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

