Not simply a "rounded" cube

Hi,

I try to explain what I want to achieve. Its kinda rounded cube, but a bit more tricky than just adding bevel to all edges/sides. I provided a screenshot of what I want to achieve.

20210823_154356

Like a cube with very round corners on up / bottom side/corners and a tiny bevel at each side…
Is there anything out there (geom) to use right away, or any idea how to achieve this?

Thanks
b

In 3ds max → Mesh Smooth and export to .obj format

Hi!
ExtrudeGeometry() may help :thinking:

@Chaser_Code preferable without using a 3d software beforehand… just “in” code
@prisoner849 hmmm… :slight_smile:

Ahhh, seems the roundedRectShape is what I´m searching for:
https://threejs.org/examples/?q=shapes#webgl_geometry_shapes

Wondering if “ExtrudeGeometry” does its job for generating good UVs for the extruded parts as well?

1 Like

Looks nice.
Example: https://jsfiddle.net/prisoner849/pjb3cdm8/
Picture:

6 Likes

This really looks nice!