Jump to content

create a box with one side open


Recommended Posts

On 8/24/2018 at 2:31 PM, JohnK said:

Hi @reggie and a warm welcome to the forum from me. Easiest way is using a tube http://www.babylonjs-playground.com/#165IV6#453

Excellent! I was looking for a simple dynamic way to do this too.

Don't forget to rotate the mesh 45 degrees around the Y-axis to get the corners aligned with a regular box from BabylonJS.

Link to comment
Share on other sites

Create a couple of planes, position correctly and merge box and plane.

By the way if you want a rectangular open box the I suggest you use extrusion rather than tube to create the box. Just define the shape for the extrusion as a rectangle  http://doc.babylonjs.com/how_to/parametric_shapes#extruded-shapes

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...