Hi all.
I see ModelClipTest and ModelClipTest2 and everything nice working, but i
need to use all planes that will make box, which is cutting visibility. In
this demos are use only 2 or 1 plane. And the problem is that when i use 6
planes only 4 works. even if i take deault settings and set
InfluencingBounds, it's still only work 4 planes. Where is error? Thanks
for help. here is the code:
private void cutting( TransformGroup target ){
Vector4d[] planes = new Vector4d[6];
planes[0] = new Vector4d( 1, 0, 0, -0.3 );
planes[1] = new Vector4d( -1, 0, 0, -0.3 );
planes[2] = new Vector4d( 0, 1, 0, -0.3 );
planes[3] = new Vector4d( 0, -1, 0, -0.3 );
planes[4] = new Vector4d( 0, 0, -1, -0.3 );
planes[5] = new Vector4d( 0, 0, 1, -0.3 );
boolean enables[] = {true, true, true, true, true, true};
BoundingSphere bounds =
new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
ModelClip mc = new ModelClip( planes, enables );
mc.setInfluencingBounds(bounds);
target.addChild( mc );
}
===========================================================================
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".