# Calculating a curve, making a skeleton, exporting to vector,

**URL:** <https://www.ruby-forum.com/t/calculating-a-curve-making-a-skeleton-exporting-to-vector/152560>\
**Category:** Ruby\
**Created:** [November 5, 2008, 5:55am UTC](https://www.ruby-forum.com/t/calculating-a-curve-making-a-skeleton-exporting-to-vector/152560 "2008-11-05T05:55:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tladuke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@tladuke](https://www.ruby-forum.com/u/tladuke)\
**Post date:** [November 5, 2008, 5:55am UTC](https://www.ruby-forum.com/t/calculating-a-curve-making-a-skeleton-exporting-to-vector/152560/1 "2008-11-05T05:55:24Z")

</div>

Can I do this in Ruby? Basically, I want to copy this guy:

I don’t even know what words I’m supposed to describe this.

---

<div class="post-metadata">

**Author:** ![tladuke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/df788c/32.png) [@tladuke](https://www.ruby-forum.com/u/tladuke)\
**Post date:** [November 6, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/calculating-a-curve-making-a-skeleton-exporting-to-vector/152560/2 "2008-11-06T19:17:46Z")

</div>

On Tue, Nov 4, 2008 at 8:53 PM, Travis Laduke  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can I do this in Ruby? Basically, I want to copy this guy:
> 
> [- YouTube](http://www.youtube.com/watch?v=29_omkkvxiE)
> 
> I don’t even know what words I’m supposed to describe this.

That’s pretty neat! Can’t specifically think of any ruby libraries or  
bindings that would help with this, but the basic plan of attack would  
seem to be:

1. Design your object in a 3D modeller or CAD program
2. Export it to some standard vector format
3. Find a library that can work with that vector format and calculate  
cross sections

Your 3D modelling program might actually be able to do the cross  
sections itself, and generate them in a loop via its internal  
scripting language.

martin
