Here is how it works for me
if (clip){
modelclip.setEnable(0, true);
modelclip.setEnable(1, true);
...
}else{
modelclip.setEnable(0, false);
modelclip.setEnable(1, false);
...
}
----- Original Message -----
From: "Ben Logan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 03, 2004 5:33 PM
Subject: [JAVA3D] Clipping - turning off
> Hi I want to turn the clipping off during the execution of my program,
> how do I do this?
> What im doing currently;
>
> if (clip) {
> view[canvas].setFrontClipPolicy(View.VIRTUAL_EYE);
> float clipDistance = (float)mainWindow.zOrigin - 0.5f;
> clipDistance = clipDistance * -1;
>
> view[canvas].setFrontClipDistance(clipDistance);
> }
> else {
> view[canvas].setFrontClipPolicy(View.VISIBILITY_DRAW_ALL);
> }
>
> But this doesn't work, the clipping will remain on all the time
>
> I don't really want to cheat;)
>
> Cheers
>
>
> ********************************************
> Ben Logan - Graduate Software Engineer
> RCID
> Stephenson Building
> Newcastle Upon Tyne
> NE1 7RU
> www.rcid.ncl.ac.uk
> ********************************************
>
>
===========================================================================
> 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".
>
>
===========================================================================
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".