DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > Model > Entities > Movement > ICutEffect_KC 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