Welcome to the BJS community. I can’t see your code, only screenshot but from what I see and your description of ‘cannot see sides when looking directly at them’, there’s a fair chance of a simple answer (nothing related with the way you build or import your points). It looks to me that either
the shape is not closed. When using polygon mesh builder and extrusion you should add a point at origin to close the shape.
it could be also ‘material’ related, due to alpha blending or renderingGroupID.
but I’d say the ‘close shape’ option is the first one I’d investigate.
Try may be to just import/build a very simple shape and make sure to close it. See how it goes…
As far as I know, I experienced it and it didn’t work this way.
I have just been doing a post with a couple of faulty examples in the doc and playground examples.
I’m updating the post just know as i keep on finding new ones with the same issue.
Edit: but you’re right saying that not all constructors (mesh builders) act the same. And this is also kind of annoying, isn’t it?
MeshBuilder.ExtrudeShape() // Worst one for me.
MeshBuilder.ExtrudePolygon() // No way to add arcs.
new PolygonMeshBuilder("name", path).build(updateble: false, length: 1) // The one's that Danilo use.
First and second do not close loop. Last one does.
I believe that author of topic creates simple forms of buildings from gis data.
So my reply is refers to that.
For creating a rope it is better to use second method, I think .
sorry, 'just realized that the rope playground example use ‘.ExtrudeShape’ and this is precisely one method that requires you to close the path/shape if you don’t want a glitchy output (as shown in the faulty examples).
Again, In my understanding of the doc I would have said the same as you, but, in truth, this is not the case. In the end, .ExtrudeShape requires you to close the path. Or else, I should quickly go and have my eyes checked
Thank you all for your responses. Turns out a simple points.reverse() fixed the problem. I had no idea that GeoJSON polygon data was in clockwise format, I just guessed it would play along nicely. The output is the same whether or not i .pop() the last closing point or not.