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 > Programming Samples and Tutorials > .NET Samples > Delphi Samples > Shape Explorer
Shape Explorer Sample Overview

Shape Explorer Sample

Shape Explorer Sample demonstrates investigation of structure of BSpline BRep shapes

See also All samples

The application

By default the application displays two BSpline BRep objects. The controls on the form allow browsing different objects and the tree of subshapes inside each object

The text on the top of Shape Info group shows number of each kind of subshape in the current object. The Current Face control allws browsing all faces in the object. The face is highlighted with a different color in 3D view. The controls inside the Current Face info allow browsing subshapes of the current face. The current element is also displayed in 3D view.

The "More Properties" dialog. Shows additional properties of the current face, like range of it su,v parameters. It also demonstrates mapping of u,v rectangle to 3D points

The Construction menu demonstrates building a new BSpline BRep object from the ground up by defining geometry of its vertices, edges and faces.

Implementation

Information about subshapes of the current object are obtained via IKO_TopExp_Explorer queried from ISection of the current object. The same interface is used to obtain the m_iExplorerFace which is another IKO_TopExp_Explorer implemented by the current face.

m_iExplorerFace is used to obtain information about sub shapes of the current face.

ISelection_KC interface queried from IView is used to highlight current sub shapes in 3D view.

The Face Properties dialog uses IKO_BRepGProp_Face interface queried from the relevant IKO_TopExp_Explorer to access the information.

The Build New Shape item from Construction menu is inmplemented in ShapeBuilder class, which uses IKO_BRep_Builder interface to define geometry of the new object