How to create 3D architectural models in this shape with interactive faces?

5

1

I am a non-technical person in the imageProcessing side,so I don't have any idea how can I make polygon in the below shape...

enter image description here

the above polygon is a 3D Graphics ,if I click on any face of the polygon it will show some message. I am still working on it,but i didn't get which function is better out of this Cuboid and Polygon

can you give any suggestions on this?

subbu

Posted 2012-10-16T05:27:51.013

Reputation: 2 204

4You can't cut holes in a Cuboid[], so your best bet is using Polygons. It's not going to be easy, but it isn't all that difficult either — just some tedious geometry. You'll have to, of course, figure out the 3D points for the different faces and the roofs and then you can use Texture[] to tile the roof. However, I would strongly suggest against using Mathematica for this. It might be far simpler to create this in something like AutoCAD or even Google Sketchup Pro and then import it into Mathematica. – rm -rf – 2012-10-16T05:37:49.863

@rm-rf Thanks for your information.... – subbu – 2012-10-16T07:12:41.023

If this was created in 3DS Max - this suggests it might be - then suitable follow-up questions could include "How can I import 3DS files that retain surface textures?" or "How can I edit 3DS files in Mathematica?".

– cormullion – 2012-10-17T08:25:56.867

Answers

6

This is a basic code to get textures and "click on any face to show message" features:

Graphics3D[{

  {Texture[ExampleData[{"ColorTexture", "Metal4"}]],
   PopupWindow[
    Polygon[{{-1, -1, 0}, {1, -1, 0}, {1, 1, 0}, {-1, 1, 0}}, 
     VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}, {0, 1}}],
    Style["metallic floor", 18]]},

  {Texture[ExampleData[{"ColorTexture", "Roof"}]], EdgeForm[],
   PopupWindow[
    Polygon[{{0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0, 1, 1}}, 
     VertexTextureCoordinates -> {{0, 0, 0}, {1, 0, 0}, {1, 1, 1}, {0,
         1, 1}}],
    Style["brick roof", 18]] }

  }, Lighting -> "Neutral"]

enter image description here

Now for sophisticated designs look at demonstrations:

enter image description here

Vitaliy Kaurov

Posted 2012-10-16T05:27:51.013

Reputation: 66 672