From the Collection of examples from discourse.threejs.org
ProceduralHeart
From Addon. Produces almost infinite many time-varying geometries with functions
see examples THREEf
and
form library THREEf.js :
//0024 heart (pulsating by t) @author hofk
radiusSegments: 50,
height: 10,
withTop: true,
withBottom: true,
rCircHeight: function ( u, v, t ) { return 20 * ( u - 0.5 ) * ( u - 0.5 ) + 0.3 * Math.sin ( Math.PI * v ) + 0.3 * Math.sin( t ) },
moveX: function ( u, v, t ) { return -Math.cos( 2 * Math.PI * u ) },
topHeight: function ( u, t ) { return 0.6 * ( 1.4 + Math.cos ( Math.sin( t ) * Math.sin( t ) * u ) ) }