DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
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 Go to DGKC docs Search Documentation


ICutEffect_KC Interface

ICutEffect_KC interface provides access to cut effect, which implements animation of cutting one object with another

Use IDIObjectGenerator.Create( (int)EObjectType.eObjTypeCutEffect ) to create a cut effect and obtain its ICutEffect_KC interface

See also Interface List


HRESULT Setup(ISection* obj)

Parameters

obj - [in] The cut object

Remarks:

Associates the effect with the object being cut


HRESULT Begin(IMove_KC* path)

Parameters

path - [in] Path of the cutter object

Remarks:

Associates the effect with movement of the cutting object


HRESULT Show(float t)

Parameters

t- [in] Relative position of the cutter object during the movement. Valid range: 0 (start) to 1 (end)

Remarks:

Shows the scene at moment t during movement


HRESULT End()

Remarks:

Resets state of the effect and releases resources allocated during call to the Begin method


HRESULT Chain(ICutEffect_KC* effectNextMove)

Remarks:

WWhen there are series of cutting moves call this method for all moves but the last one to make the effect aware of each other for more realistic simulation