Search the Community
Showing results for tags 'extrudeshape'.
Hello everybody :-) I'm trying to use ExtrudeShape for creating a building shape and am having trouble with the cap. I understand that the cap is not tessellated (triangulated) so it would be faster. But when I have concave angles in the shape, it doesn't look good. I also tried using Ribbon for the roof polygon somehow, but the tessellation doesn't happen here either of course. Here is my code: http://www.babylonjs-playground.com/#1KQZAF#0 I tried using PolygonMeshBuilder but the mesh is rotated the way I don't want it to and some walls keep dissapearing depending on the angle of view: http://www.babylonjs-playground.com/#SJLOW#1 I don't need the mesh to be updated so the speed of tessellation doesn't bother me much. What am I doing wrong? What can I do to have a tessellated building? Thanks :-)
I have been trying to use the extrudeShape method but have found that the original shape I created is rotated 90 degrees anti-clockwise around the Z axis when it is applied. My example is http://www.babylonjs-playground.com/#RF9W9#49 The shape to be extruded is shown in green. Is this an issue with extrudeShape or am I missing something?