<p>I am given an irregular geometry shape with its vertices, bounding box information.</p>

<p>How to draw a smooth mesh equal distance from that irregular geometry shape's bounding box? </p>

<p>Please refer to the image here:
<a href="https://i.sstatic.net/SraGv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/SraGv.png" alt="Smooth mesh equal distance from irregular shape"></a></p>

<p>My attempt:
1) I have tried to create 8 spheres at 8 corners of a bounding box and a box for X, Y, Z direction. The result looks very ugly and not smooth like this:
<a href="https://i.sstatic.net/YFkz9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YFkz9.png" alt="My attempt"></a></p>

<p>Is there any algorithm or formula I can utilise to draw mesh around a bounding box?</p>

<p>Thank you</p>

CC BY-SA 4.0
2018-05-04T19:56:29.720Z
@Rahul, how to render the intersections between spheres, cylinders, boxes to be transparent? You can write it as an answer if you wish. Thanks.
user2150279
<3d><geometry><mesh>
how to draw mesh equal distance from irregular shape geometry bounding box
user2150279
# how to draw mesh equal distance from irregular shape geometry bounding box

(Asked by: username_0 on 2018-05-04)

I am given an irregular geometry shape with its vertices, bounding box information.

How to draw a smooth mesh equal distance from that irregular geometry shape's bounding box?

Please refer to the image here:
[![Smooth mesh equal distance from irregular shape](https://i.sstatic.net/SraGv.png)](https://i.sstatic.net/SraGv.png)

My attempt:
1) I have tried to create 8 spheres at 8 corners of a bounding box and a box for X, Y, Z direction. The result looks very ugly and not smooth like this:
[![My attempt](https://i.sstatic.net/YFkz9.png)](https://i.sstatic.net/YFkz9.png)

Is there any algorithm or formula I can utilise to draw mesh around a bounding box?

Thank you

**Tags:** 3d, geometry, mesh
> **Comments:**
> **username_0**: @Rahul, how to render the intersections between spheres, cylinders, boxes to be transparent? You can write it as an answer if you wish. Thanks.  

---

## 0 answers

