clippingplane viewing both sides

clippingplane viewing both sides

vredeye
Enthusiast Enthusiast
470 Views
2 Replies
Message 1 of 3

clippingplane viewing both sides

vredeye
Enthusiast
Enthusiast

Hi

 

Is it possible to view both sides of the clipping plane i.e like one side solid and other side glass material ( or transparent )

With this api i can invert the plane , but what if i want to view both sides at same time ? any tips

I see there is something called "double sided rendering" not sure how to get it working

 

setClippingPlane(position, normal, flipped)

Sets the clipping plane.

Parameters:

  • position (Pnt3f) - The position of the clipping plane.
  • normal (Vec3f) - The normal of the clipping plane.
  • flipped (bool) - Sets the direction of the normal.
0 Likes
471 Views
2 Replies
Replies (2)
Message 2 of 3

michael_nikelsky
Autodesk
Autodesk

Hi, 

 

I am not quite sure if I understand correctly what you are trying to achieve. A clipping plane always cuts away one side, that is its basic definition.

I think what you what you are trying to achieve is requiring two clipping planes in the scene graph and not the global one. What you need to do is create one clipping plane to cut away the half of one object (just put the objects to be clipped as children of the clipping plane) and the second clipping plane rotated 180 degree to cut away the half of the other object.

 

Kind regards,

Michael



Michael Nikelsky
Sr. Principal Engineer
Message 3 of 3

vredeye
Enthusiast
Enthusiast

Thanks for reply

 

yes you have got me right i just want something like this , where i can view one side solid material and other side of the clipping plane use glass ( or transparent ). yes i know clipping plane basically clips one side. I see there is an invert selection which shows the other side.

 

so may be i thought i could use the python api of invert selection. but i dont seem to find any python function for invert selection of clipping plane.

 

Using two clippingplanes is a good ideas , i ll do a research on this, 

0 Likes