A scanner grayly

cristian paul peñaranda rojas paul at kristianpaul.org
Mon Jul 26 20:21:26 EDT 2010


On Mon, Jul 26, 2010 at 03:20:42PM -0300, Werner Almesberger wrote:
> The red lines show the bottom surface of the counterweight. I
> generated them with the following Python script:
> http://www.almesberger.net/misc/ben/tmp/cw.py
> 
> When the script is run from the HeeksPython console inside HeeksCAD,
> it generates the lines (function rect_cad). It also calculates the
> mass and torque of the counterweight.
> 
> When run from a shell, the script outputs coordinates suitable for
> viewing with gnuplot's plot and splot commands. It's quite nice to
> be able to combine three types of output (CAD model, quick and dirty
> plot, and calculation of complex properties) in a single script.
> 
> Note that HeeksPython is quite ugly and only supports a few of
> HeeksCAD's operations - that's why I haven't added the top surface
> of the counterweight and then made a 3D solid, but it's a very
> promising basis for more powerful scripting.
> 
> I added the scanned surface to the lines simply by importing the STL
> file. (My counterweight model was based on the same scan, so the
> coordinates are the same. Note that the scan's X/Y plane is slightly
> tilted while the model's isn't. This is why some lines in the front
> disappear into the bottom shell.)
> 

Hey that script looks really usefull !

I dint spect heekspython able to do that, it will make me read more about

Thanks for sharing this !

I think you should share this results on heekscad users list
> - Werner
> 
> _______________________________________________
> Qi Developer Mailing List
> Mail to list (members only): developer at lists.qi-hardware.com
> Subscribe or Unsubscribe: http://en.qi-hardware.com/mailman/listinfo/developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20100726/8cd33273/attachment.pgp>


More information about the discussion mailing list


interactive