JZ7878 Posted October 18, 2018 Share Posted October 18, 2018 Hi all, I tried to create a plane with holes, and I found the following seems good to me. http://playground.babylonjs.com/#4G18GY#6 But when I did it via BABYLON.MeshBuilder.CreatePolygon, I found that it will ignore the y value of all points, so I am confused. If I want to create some shpes(any) with holes in it, what's the better way to do it, or can I make CreatePolygon not ignore the y value? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
ssaket Posted October 18, 2018 Share Posted October 18, 2018 Hi there, please go through the official documentation, it covers all your questions (https://doc.babylonjs.com/how_to/parametric_shapes) TL;DR For Non Regular Polygon/ Extruded Non Regular Polygon -> the path should be in x0z plane. and you can use extrude shapes in both z and y direction (ref - https://doc.babylonjs.com/how_to/parametric_shapes#extruded-shapes) Hope this helps, happy learning NasimiAsl, JohnK and GameMonetize 3 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2018 Share Posted October 18, 2018 Flagging as solved Thanks a lot @ssaket Quote Link to comment Share on other sites More sharing options...
JZ7878 Posted October 19, 2018 Author Share Posted October 19, 2018 @ssaket thanks you ! I will try to study how to do it from the links you send. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.