Starting with a polygon from the countries data set, I am interested in building a 3D extrusion of that country polygon to assemble it in 3D with the other countries.
I get the polygon and extrude it using regions:
data = Entity["Country", "UnitedStates"]["Polygon"][[1, 1, 1]];
R = BoundaryMeshRegion[data, Line[Join[Range[Length[data]], {1}]] ];
R3 = RegionProduct[R, MeshRegion[{{0}, {1}}, Line[{1, 2}]]]
It looks like this: as expected
Now I would like to map it to earth, a sphere, and change the coordinates from Lat,Long, Altitude to {x,y,z}
TransformedRegion[R3, (1 +
Indexed[#, 3]/10) {Cos[Indexed[#, 2] N[Degree]]*
Cos[Indexed[#, 1] N[Degree]], Sin[Indexed[#, 1] N[Degree]],
Sin[Indexed[#, 2] N[Degree]]*Cos[Indexed[#, 1] N[Degree]]} &]
But I only get
What am I missing?
Thank you,
Luc
[1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ScreenShot2020-07-11at6.37.13AM.png&userId=1791006
[2]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ScreenShot2020-07-11at6.40.44AM.png&userId=1791006




