Home Page > Programming Samples and Tutorials > Overview > Clip
Clip Sample Description
Clip Sample
Source code for Clip sample is available in Samples\NET\C#
folder of the installation directory.
Clip is a simple application, which demonstrates programming of
Clipping Planes.
The application
The application loads Clip.glm 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 too.
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.
Implementation
Please select your language:
.NET Platform
C#
Native
C++
See also:
All samples
|