KitchenDraw SDK 2
Show / Hide Table of Contents

Method GetSnappedObjects

GetSnappedObjects(SnapType, SnapDirection, bool, int)

Lists the objects having a 'snapping relation' with this object.

Declaration
public IList<Scene.Object> GetSnappedObjects(Scene.SnapType snapType = SnapType.Any, Scene.SnapDirection snapDirection = SnapDirection.Any, bool filterByTexture = false, int textureRank = 0)
Parameters
Type Name Description
Scene.SnapType snapType

Snap type to consider.

Scene.SnapDirection snapDirection

Snap direction to consider.

bool filterByTexture

Indicates whether only the anchor points and the receivers having a specific texture.

int textureRank

Specifies the texture rank (in the catalog Textures table) of the texture that the "anchor" and "receiver" 2D primitives should have to be considered. This parameter has an impact only if filterByTexture is set to true.

Returns
Type Description
IList<Scene.Object>

The list of the objects that have the specified snapping relation to this object.

In this article
Back to top Generated by DocFX