Shapes3d: Box Object: missing command setSize

Dear all,

sorry, when this has been asked before.

Please jump to my Edit parts below.

  • Box Object:

In an OLD shapes3d lib by @quark :

Box Object: missing command setSize().

// OLD Help for setSize(float width, float height, float depth) boxBoard[iBox].setsize(80, 5, 80);

also Box Object: command draw() needs to be : myBox.draw( getGraphics() );

  • Also

also this func gives a problem. It’s a new code for replacing the even older code for Toroid of the same lib :

classes Path and Oval not existing

Tube makeToroid(float ringX, float ringY,
int nbrSlices,
float crossX, float crossY,
int nbrSegs) {

// Create tube path (circular / elliptical)
Path path = new Ring(ringX, ringY, nbrSlices);

// Create torroid cross-section
Oval oval = new Oval(crossX, crossY, nbrSegs);

//  Extrude oval round path to create torroid
Tube toroid = new Tube(path, oval);

return toroid;
}
  • Also

this gives an error

Shape3D picked = Shape3D.pickShapeB(this, mouseX, mouseY);

func doesn’t exist

Edit

Apprently the imports need to be in an certain order for some of the issues above :

import shapes3d.*;
import shapes3d.contour.*;
import shapes3d.org.apache.commons.math.*;
import shapes3d.org.apache.commons.math.geometry.*;
import shapes3d.path.*;
import shapes3d.utils.*;

Edited II :

ok, this is what I got now

    // by Quark: http://www.lagers.org.uk/s3d4p/index.html
    Picked picked = Shape3D.pick ( this, getGraphics(), mouseX, mouseY );

    if (picked != null) {
      done = true;
      MakeHumanMove ( picked.part );
    }

But he doesn’t get the right picked.part !!!

Before part I had tagNo

in combination with an init routine saying

boxBoard[iBox].tagNo = iBox;

I wanted to say

boxBoard[iBox].part = iBox; // part was tagNo before

but it’s not allowed

How can I fix these issues?

Thank you all !

Warm regards,

Chrisir