Clip Sample
    Clip is a simple application, which demonstrates programming of
Clipping Planes.  
The application  
The application loads Clip.mdg model. The model has Cylinder, Cone and Box as 
its top objects. Sphere object is a child of Cone. The form of the application 
displays properties of the first clipping plane of the Cone object. 
When Share check box is on, the clipping plane is shared with the Cylinder and 
the Box. In this case changes in location or orientation of the plane affect 
immediately all three objects. When the plane is shared it becomes global object 
in the model, which reflected in coordinates. When the plane is not shared 
coordinates of the plane are relative to the local frame of its owner (Cone). 
Otherwise coordinates are global. 
Children check box is connected to the "IncludeChildren" property of the 
Clipping Plane. When it is on the sphere is getting clipped by the plane as well. 
When Show check box is on Color button appears on the form. It allows 
modification of color and transparency of the disk which shows location the 
clipping plane. 
See also: 
All samples  
                 |