|
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
Vector4d eqn1 = new Vector4d(0.0, extremumPointTop
, 0.0, -JsliderValue * extremumPointTop );
modelclip.setPlane(1, eqn1);
But it seems to be wrong.
Thanks for your help in
advance.
|
- Re: [JAVA3D] fit ModelClip Olivier Tassy
- Re: [JAVA3D] fit ModelClip Renoir Sewjee
- Re: [JAVA3D] fit ModelClip Olivier Tassy
- Re: [JAVA3D] fit ModelClip Dipl. Ing. Paul Szawlowski
- Re: [JAVA3D] fit ModelClip Ingo Brunberg
