Jump to content

Holes in extruded shape


Topper
 Share

Recommended Posts

Hi everyone,

I´m trying to figure out the best way to put holes in an extruded shape.

What I want to get achieved is the upright of a pallet rack with hole patterns on three different sides based on user input.

I want to keep effort and complexity as little as possible.

I already tried two different approaches:

1) create shape, add holes, extrude

2) create shape, extrude, ???

I already went through the "house sample" in the PG, but the workflow there is kinda different:

I want to define the holes (or their coordinates) after having extruded my shape.

Here´s the result of my two tries.

Is there a way to cut holes into an extruded shape by vector3 ccordinates?

BR,

Markus

 

 

frame_prob.png

Beam_3D.png

Edited by Topper
still unsolved
Link to comment
Share on other sites

Thanks folks,

CSG is exactly what I need. It´s pretty straight forward, though.

Unfortunately I didn´t find enough time yesterday evening to code the JS-functions to cut the needed holes over the whole mesh length.

But CSG already became my new friend. ;-)

Holes_CSG.png

Link to comment
Share on other sites

Ok, I still Need some help,

I´m using a for loop to create multiple cylinders along the main mesh´s Y-axis to cut holes using CSG.

For some reasing it only cuts out the hole the last cylinder produces.

I´m not sure if i´m using the wrong order of my code lines in the for loop.

 

http://www.babylonjs-playground.com/#5KCYBZ#1

 

Thanks,

Markus

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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