Geometry
-
As I started on my linear algebra class, some weeks ago, I decided to dust off the Transformer app I'd written a few years ago and make sure it works in AutoCAD 2014. It actually really helped me in creating appropriate transformation matrices for certain parts of the course. Coincidentally, a few days ago, I […]
-
It's my mum that first pointed me at Coursera. Yes, that's right: my mother. That's quite an admission for a software professional to make, I'm sure you'll agree, but then my mother does spend more time listening to the radio than I do (and there's been some recent coverage of Coursera on BBC Radio 4). […]
-
In case you missed it, last week Scott Sheppard announced the availability of a new version of DesignScript on Autodesk Labs. This release unveils DesignScript Studio which brings a visual programming environment to the DesignScript language. People who are familiar with Rhino Grasshopper or SoftImage's ICE will be aware of the benefits of working with […]
-
After working out how generally to use Brandon Cole's Shape Script code to display mathematical shapes in Tinkercad, I carried on looking for some interesting functions to "plot". I ended up finding definitions for two Cinquefoil knots, specifically the (2,5) and the (5,2) variations (I also tried the (5,1), but that ended up looking just […]
-
I received this question in a blog comment: How to determine the NurbCurve3d center between two NurbCurve3ds? I chose to interpret this in the following way: given two NurbCurve3d objects, create a NurbCurve3d that sits exactly between the two. NurbCurve3d are "AcGe" classes – which means they're non-graphical – so I've broadened the scope to […]
-
I've learned a few things since the last post, where we complemented AutoCAD's new JavaScript API with some additional .NET functionality to work around an issue that existed in the code we'd developed in the previous two posts. Firstly, I found out there's a better way for your jig to display transient graphics than via […]
-
Just to complement yesterday's post showing how to define a simple jig using JavaScript, here's the same code from a separate .js file: var doc = Acad.Application.activedocument; var center = new Acad.Point3d(0, 0, 0); var radius = 0; var trId; function pointToString(pt) { var ret = pt.x.toString() + "," + pt.y.toString() […]
-
Or otherwise named "Creating an AutoCAD jig to dynamically display a guilloché pattern using F#". But then why pass up the chance for a Jerry Maguire reference? 🙂 Anyway, to continue on from last week's post, Doug – who had presented the original challenge – went on to suggest that I give it the same […]
-
Here's a fun one to finish up the week. And no, it isn't a belated April Fool's gag. 😉 I should probably say right away that you won't be printing money after reading this blog post, but you might know more about some of the security measures used by those who do. A couple of […]
-
As predicted in the first post in this series, today's post looks at a slightly more robust and user-friendly approach for determining the point on a surface found by firing a ray normal to a selected X,Y point in the plane of the current UCS. Here's the updated C# code that now includes an additional […]