DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


Transform VB .NET Sample

Overview

Implementation

All important work is done inside OnApply handler for the Apply button

    Set iModel = KernelCAD1.GetModel()

retrieves IModel interface (See Interface List ), from which all other interfaces are accessed.  Interface to the current entity is kept into iSect variable. It is obtained in the same procedure using calls identical to

Set iSect = iModel.GetEntity(0)  

An instance of ITransform interface implemented by the object is obtained with assignment:

Dim iTransf As ITransform = iSect

KernelCAD1.UpdateSurface

call in the end of the Sub is required to recalculate surface of the object after changes in its parameters.

The offset operation is performed with IMeshMods.Offset in the same sub. IMeshMods is obtained via query ISection > IMesh > IMeshMods.

See also: Overview, All VB .NET Samples