Read the plane specification in the api docs carefully. I think you
need something like this:

eqn1 = new Vector4d(0.0, -1.0 / (extremumPointBottom +
                                 JsliderValue * diff),
                    0.0, 1.0);

where diff = extremumPointTop - ExtremumPointBottom

Regards,

Ingo


> Hi, I have a Jslider(values 0 to 100%) wich performs a modelclipping
> for a = set of objects in my scene.  I want the clipping to start
> from the top point of the top object and = finish to the bottom
> point of the bottom object.  I can get the coords of both extremum
> by using BoundingBox' getUpper = and getLower methods (thank you
> Joachim), but I don't know how to set = the plane equation for the
> ModelClip.
>
> I tried with something like=20 Vector4d eqn1 =3D new Vector4d(0.0,
> extremumPointTop , 0.0, = -JsliderValue * extremumPointTop );=20
> modelclip.setPlane(1, eqn1);
>
> But it seems to be wrong.
>
>
> Thanks for your help in advance.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to