KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Models > Sections > Attributes > Clipping Planes
Clipping Planes

Clipping Planes

Clipping planes allow cutting off some part of the current object. They are helpful in many situations. One of usages is joining objects. Example of that is the Pipes.glm model from the installation folder. 

Clipping plane is defined by the point where the plane passes through and unitary vector of its normal. Semi space where the normal points to is called positive side of the plane. When enabled, clipping plane cuts off all parts of the object which are located on the negative side.

Every object has a fixed set of six clipping planes. A clipping plane has to be enabled to have effect on the appearance of the object.  By default all clipping planes are disabled and located at the origin of the local frame with normal directed along the local x axis.

In 3D Debugger clipping planes are managed by Clip Editor dialog, which is available from the Current Object > Clipping Planes menu option. In KernelCAD control clipping planes are managed by IClipArray interface, which can be queried from ISection, and IClipPlane interface, which can be be obtained using GetClipPlane method of the IClipArray.

Clipping plane can be drawn for debugging or other purposes. To enable drawing use IClipPlane.Show method.

Direction of normal vector of the clipping plane is controlled via IAxis, queried from the correspondent  IClipPlane Location of clipping plane can be controlled with ILocation interface queried from IClipPlane or previously obtained IAxis.

A clipping plane can be shared by different objects. This way it is easy to synchronize modifications of the plane. When a clipping plane is not shared it is called local clipping plane. Local clipping plane can have effect only on its object and it belongs to the object. When object is moved or exported, its local planes move with local frame of the object. Local clipping plane can be converted to shared clipping planes. 

Shared clipping planes belong to the model. When a local clipping plane is shared it is transferred to the model, so that it can be used by several other sections of the model. Shared planes are global. This mean that when  a object, which uses the plane is moved, global position and orientation of the plane remains unchanged.

An object can stop sharing a clipping plane, in which case a copy of the plane is created and made local to the object.

All clipping planes and their sharing properties are stored with the model, when saved.