20 Jun 2021, 19:11

@z3dev In order to simplify my process, I'm trying to directly use project to make the slices, and I'm beginning with an example, but I don't understand how to make several slices. First I used origin but it does not seem to work, then I'm translating the oldObject and it does not work, everytime I have the same slice.
here's my latest code :

const jscad = require('@jscad/modeling')
const { ellipsoid } = jscad.primitives
const { project } = jscad.extrusions
const { translateX, translateY, translateZ, center } = jscad.transforms
 
const main = () => {
  const vol = ellipsoid({radius: [10, 15, 20], segments: 12})
  
  let r = []
  for(let i = 0, dx = -80; i < 50; i += 10, dx += 40){
    r.push(
     translateX(dx, center({}, project({axis:[1,0,0]}, translateZ(i, vol))))
    )
  }
  
  r.push(vol)
  return r
}
 
module.exports = { main }

Maybe do I need to translate the object prior to the projection ?
Capture d’écran de 2021-06-20 21-04-48.png