Seeking assistance on creating a rounded cube using the ThreeCSG expand function for a csg model. The resulting mesh appears incorrect and I am unable to identify the issue. Is there anyone with expertise in ThreeCSG who can help me troubleshoot? Thank you.
var a = CSG.cube();
var b = a.expand( 0.4, 6 );
this.m_scene.add( new THREE.Mesh( THREE.CSG.fromCSG( b ), new THREE.MeshNormalMaterial() ) );
Preview of the mesh:
https://i.sstatic.net/58Mvz.png
(source: jvanderspek.com)
Thank you,
Jonathan