Addon to create special / extended geometries

The MagicBox

20180305-2023-09918

… is an enlarged box. It is made up of 26 parts. Multi material is supported.

parameters = { 
    smoothness: 12, 
    contourmode: 'bezier', 
    radius: function ( t ){ return 0.35 }, 
    pointX: function ( t ){ return 0.6 }, 
    pointY: function ( t ){ return 2.4 }, 
}

Some rounded boxes I know of are not completely symmetrical.

(1) https://discourse.threejs.org/t/round-edged-box/1402
(2) https://discourse.threejs.org/t/round-edged-box-2/1448
(3) https://discourse.threejs.org/t/round-edged-box-3/1481
(4) http://webglworkshop.com/demos/fillet/filletBox.html
(5) https://gam0022.net/webgl/#misc_superellipsoid ( completely symmetrical ? )

To the question (at (2)) of prisoner849 I had shown the code of a completely symmetrical corner. He thanked me in German. While mind kinda melted from onother. I hope not totally, because I’m not the fastest. It took me a long time, but now there is a MagicBox and in simple form it is also a Round-edged box. With totally symmetrical corners.

20180307-0952-00802

The segments are completely symmetrically divided into four faces. There is a center point (waffle point).

20180307-1003-27668

There are two exploded view modes for this box. Along the normal vectors or away from the centre (centre ray). The last variant is certainly the correct mode. The four faces of the segment are held together. The middle vertex is used for calculation.

The first geometry in the THREEg addon, the MagicSphere consists of 8 parts and these also form the corners of the box.

However, the code is stored independently. The Sphere was updated. There is now also explodemode ‘center’ and ‘normal’.

Check out GitHub https://github.com/hofk/THREEg.js
Try it on http://sandbox.threejs.hofk.de/ or http://sandboxthreeg.threejs.hofk.de/
Some examples react to mouse movement. For this I have manipulated function(t){} in parameters.


An application for beautiful design. I’m not an artist!

20180307-1448-39182

2 Likes