Openscad: Warp 3d Surface To Fit Onto Another Shape

Discussion in 'Software and Applications' started by andrewthommo, May 18, 2017.

Tags:
  1. andrewthommo
    andrewthommo Member
    Can OpenSCAD warp a (basically flat) 3D map to fit the outside or inside of a shape like a tube?

    To expand, say there is a surface based on a grayscale image of a landscape's topography. Is there a command (or easy way I missed) to curve the flat (bottom) side to the inside or outside of a tube?

    I guess it'd be possible to carve the surface into N pieces, translate each one to the internal or external radius of the tube, then create an union of the slices. For the outside of the tube, it would be necessary to expand the width of each slice slightly to avoid creating steep 'canyons' appearing between each pair of slices.

    But I'm hoping there is a more elegant approach I've not thought of, or an existing command I've missed.