![]()  | 
	
		
 Clipping Plane 
		
		
		Is there a way to create a clipping plane that I can manipulate?  We want to be able to interactively create cross sections of our models. 
	 | 
		
 You can use window.clip or window.frustum to set the clipping plane. 
	 | 
		
 We explored these options, but they don't provide the functionality that we need.  What we really want is something similar to glClipPlane or osg::ClipNode, not just near and far clip planes for the camera. 
	 | 
		
 Here is a sample script that shows how to apply a custom clip plane on a model (Note: the clip plane values are specified in global coordinates): 
	Code: 
	import viz | 
		
 This is great!  Thank you!  Did I just miss this in the documentation? 
	 | 
		
 Hi, 
	I have a list of around 5000 nodes on which I want to apply the clip operation. I created a scenegraph with a parent node to all of these nodes. Then I created a clipplane to the parent node. The clip plane works fine on the parent node. However the clipplane doesn't seem to apply to any of the children. I have tried with all the three op options (viz.OP_TRAVERSE, viz.OP_OVERRIDE, viz.OP_ROOT) in the clipplane definition (http://docs.worldviz.com/vizard/comm.../clipPlane.htm) but none worked. Could farshizzo or anyone else please give any pointers to my problem? Thanks in advance!  | 
		
 Please let me add that when I said "I created a scenegraph with a parent node to all of these nodes", I meant I used the command  
	Thanks.  | 
		
 I have found a way to do this - by applying the clipPlane to every node of those ~5000 nodes. I was initially hesitant to try this out, due to the limited number of planes openGL has. But I found that multiple instances of node3d.clipPlane may map to the same clipping plane of openGL. So that solved my problem. 
	 | 
		
 It's difficult to say what you are doing wrong without seeing any code. The following sample applies a clip plane to a root node and affects all children. It works for me in Vizard 3 and 4: 
	Code: 
	import viz | 
| All times are GMT -7. The time now is 03:45 AM. | 
	Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	Copyright 2002-2023 WorldViz LLC