Re: 3D Model of a Bitmap
- To: mathgroup at smc.vnet.net
- Subject: [mg105481] Re: [mg105444] 3D Model of a Bitmap
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Fri, 4 Dec 2009 04:33:51 -0500 (EST)
- References: <200912031113.GAA01031@smc.vnet.net>
Hi, have you tried ListPlot3D on your data? data = Table[ RandomReal[] + RandomReal[{0., 1}]*3*Max[KroneckerDelta /@ {i, j}], {i, -50, 50}, {j, -50, 50}]; ListPlot3D[data] Cheers Patrick On Thu, 2009-12-03 at 06:13 -0500, Tobias Baumann wrote: > Hello > > I have a complicated problem and I don't know whether it is doable. > > I've got an Bitmap containing a power profile of a laserbeam (i.e. > cross-profile). If I plot this profile with ArrayPlot it would look like > this > > | > | > ------- > | > | > > Now I want to make an three dimensional model of this imported bitmap, > to show it with Graphics3D, with a given height. > > I think one solution can be to transform every pixel in coordinates for > the 3D-Plot and take this coordinate and build with Cuboid[] my desired > body. You can imagine that every pixel, should now be a long cuboid. But > I have bitmaps with 200x200 pixels or more, so I need 40000 cuboids and > that's much too slow for my project. > > Is there any other possibility to create an three dimensional body with > constant high and the topview as image information? > > I also have an interpolated function of my laserprofile, which looks > like: LaserProfile[x,y]. I put in the coordinates and get out the power > values if the laser has some at (x,y) and zero if not. > > Thanks a lot! > > Cheers Tobias > > PS: I hope my english is understandable. If not I try to make some > better sentences. >
- References:
- 3D Model of a Bitmap
- From: Tobias Baumann <ttobsen@hotmail.com>
- 3D Model of a Bitmap