Exclude from clipping plane

Exclude from clipping plane

Anonymous
Not applicable
1,739 Views
11 Replies
Message 1 of 12

Exclude from clipping plane

Anonymous
Not applicable

Hi guys,

I have a scene with an office building and a car in front of the building. I would like to use clipping plane only on the car, so I would like to exclude the building from the plane.

Does anyone know if this is possible?

Regards
Yang

0 Likes
Accepted solutions (1)
1,740 Views
11 Replies
Replies (11)
Message 2 of 12

Christian_Garimberti
Advisor
Advisor

Hi,

create a new clipping plane node an put the car inside of it.

this clipping plane will act only on the car.

 

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

Message 3 of 12

patrick.schock
Autodesk Support
Autodesk Support

Hello @Anonymous,

 

correct, as @Christian_Garimberti wrote, create a new clipping plane for the car. Please find more information about the clipping planes here:  Using the Clipping Plane

 

Hope this helps!

 

Best regards,

Patrick

 

“https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgb-black-small_forum.png”
0 Likes
Message 4 of 12

Anonymous
Not applicable

Thanks Chris,

Thanks Patrick,

 

I have experimented with the way you mentioned about the put the clipping plane on top of the target folder. But I wonder, if I use coding to create the clipping plane:

 

enableClippingPlane(true)

 

Can I still add limitation to this clipping plane created by coding, or position this clipping onto the folder I want to clip by coding?

 

Thank you.

Yang

0 Likes
Message 5 of 12

Christian_Garimberti
Advisor
Advisor

ClippingPlane is not the same thing of  ClipPlanes.

You have to create and manage CipPlanes.

You can get an already created clipplane with the findNode("<node name>")

 

i think you can use all the vrnodeptr methods and functions

file:///C:/Program%20Files/Autodesk/VREDPro-11.3/doc/vrNodePtr.vrNodePtr-class.html

 

Chris

 

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes
Message 6 of 12

sinje_thiedemann
Autodesk
Autodesk
Accepted solution

Hi Yang,

 

creating a new ClipPlane node with Python:

 

clipPlane = createNode("ClipPlane")
updateScenegraph(True) # Scenegraph GUI refresh

 

 

Add your target node as a child to the clip plane node:

clippedGeo = findNode("MyGeo")
clipPlane.addChild(clippedGeo)

 

To enable the ClipPlane node (btw, it is already enabled by default):

 

 

findNode("ClipPlane").fields().setBool("on", True)

 

 

To change the transformation, either use the member functions of vrNodePtr, or use any of the setTransformNode... functions found in vrNodeUtils (e.g. setTransformNodeTranslation, setTransformNodeRotation).

 

findNode("ClipPlane").setTranslation(10, 20, 30)
# or
setTransformNodeTranslation(findNode("ClipPlane"), 10, 20, 30, False)

 

Hope this helps to get you started

Sinje

 

 

0 Likes
Message 7 of 12

Anonymous
Not applicable

Hello Sinje,

Thanks for the detailed explanation, it works perfect to what I would like to do, and it opens more possibilities for the experience.

 

Regards,

Yang

0 Likes
Message 8 of 12

vredeye
Enthusiast
Enthusiast

Hi

 

With Clip Plane could we also rotate and show the clipping contours and grid visualisation ? 

 

Thanks

0 Likes
Message 9 of 12

Christian_Garimberti
Advisor
Advisor

No, clipplanes are only to cut geos.

What you want to do, contours and grid, are features of the Clipping Plane tool.

 

Best

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

Message 10 of 12

vredeye
Enthusiast
Enthusiast

ok thanks

0 Likes
Message 11 of 12

vredeye
Enthusiast
Enthusiast

Yes i came to know that cliplane and ClippingPlane ( from the gui ) are two different things

With clippingplane , the contours are visible which is very good functionality but unfortunately not available in clipplane

 

So clippingplane is good for the purpose but is there a way to let the clippingplane only cut the a specific model ? i.e it should not cut other object near the object of interest ( i experimented this with clipplane and this works but dont want to use clipplane as it doesnt  have the contours )

So if i can avoid cutting of unintended objects with clippling plane would be great

 

Thanks for the tips so far

0 Likes
Message 12 of 12

Christian_Garimberti
Advisor
Advisor

Hi, There are no way to exclude objects from the clippingplane.

Unless you put them inside the Environment node... but i thing it is not a best practice...

You can add the request in the idea board if you want.

https://forums.autodesk.com/t5/vred-ideas/idb-p/2058

 

Best

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes