Author Topic: Updated Heightmap plugin with cylinder wrap  (Read 46588 times)

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Updated Heightmap plugin with cylinder wrap
« on: May 09, 2007, 22:21:26 pm »
This plugin is in response to this cnczone thread.

This adds a cylinder wrapping function to the heightmap generater that modifies the loaded bitmap by wrapping it aroung a cylinder.  The resulting bitmap can then be saved and used to laser engrave over a curved surface when no rotary axis is available.

This was a very quick and dirty approach, there must be more efficient ways of doing it.

I've attached the source code and binaries for this plugin.

The cylinder wrap function is located in HeightMapGenerator.cs

public void CylinderWrapBitmap();

This contains hard coded parameters such as the sweep angle (default=180).


Offline twocik

  • Wookie
  • ****
  • Posts: 285
    • View Profile
    • iFocus Films
Re: Updated Heightmap plugin with cylinder wrap
« Reply #1 on: June 19, 2007, 09:40:54 am »
Wow looks really good!!  What machine did you use?

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: Updated Heightmap plugin with cylinder wrap
« Reply #2 on: June 19, 2007, 10:26:48 am »
Wow looks really good!!  What machine did you use?
I didn't make these heads unfortunately  :'( ...they're just there to illustrate the photo mangliness of the plugin.  However, I am putting plans together to make some large foam molds to use for casting concrete in the near future.
Casting neoprene is also good to use to make molds for stuff like this from a master copy.  I think that's what the garden gnome brigade use.