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 > Overview > Transform
Transform Sample Overview

Transform Sample

Source code for Transform sample is available in Samples\VB folder of the installation directory. Transform application demonstrates usage of ITransform for scaling and translation of different types of objects. It also demonstrates surface offset operation performed by IMeshMods.Offset

Note that VB 6.0 samples require Common Dialogs component enabled in the development environment (details).

See also:  ITransform, All VB samples

Running Transform Sample

Transform.glm model displayed by the application contains three objects of different types. Top group of radio buttons allows selection of an object to be transformed. The middle group of radio buttons selects the operation to be performed. Edit boxes at the bottom allow changing either scaling factors, translation vector or rotation axis, depending on the selected operation. The operation is executed on each apply button. File > Reload menu option allows discarding changes.

Translate Frame operation allows changing position of the local frame relative to the rest of the object

For Sphere object translation operation is allowed only for translation along z- axis because it is a Surface Of Revolution. Other translations are possible in this situations too but they modify shape of the object. This is caused by the requirement for the local z axis to be axis of the rotational symmetry. 

The offset operation is available currently only for Mesh Section type of objects.

The C# implementation is new and different. It demonstrates operations with transforms and frames

Implementation

Please select your language:

VB .NET

VB 6

C++

C#