Skip to content

IGH_Structure

Public Interface

Base interface for all GH_Structure types.

Namespace: Grasshopper.Kernel.Data

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public interface IGH_Structure

The IGH_Structure type exposes the following members.

Properties

Name

Description


Public Property

Gets a limited access pointer to the data list associated with a certain path.


Public Property

Gets a limited access pointer to the data list at the specified index.


Public Property

Gets the total number of data items stored in all paths.


Public Property

Gets the Empty state of the structure. If the structure is Empty when it contains no paths and no branches.


Public Property

Gets the data path at the specified index.


Public Property

Gets the number of paths defined in this structure.


Public Property

Gets a list of all the paths in this structure.


Public Property

Gets a proxy list of all the data-arrays in this structure


Public Property

Gets a description of the topology of the structure. Useful for debugging purposes.


Methods

Name

Description


Public Method

Gets an enumerator for all the data items in this structure.


Public Method

Clears the entire structure.


Public Method

Removes all data from all paths without affecting the structure topology.


Public Method

Gets a description of the data contained in this structure.


Public Method

Ensures that all branches have a certain capacity


Public Method

Expand a path in this structure by appending an element.


Public Method

Flattens the entire structure into a single path.


Public Method

Grafts all paths by reallocating all data into child paths.


Public Method

Grafts a specific path by reallocating all data into child paths. If a grafted path coincides with an existing path, the data item in question will be appended to the existing path.


Public Method

Finds the path in this structure with the most dimensions. In case of multiple equally long longest paths, the last one will be returned.


Public Method

Returns True if the specified path is already defined inside the structure.


Public Method

Find the indices that delineate the given path domain.


Public Method

Removes a path and all associated data from the structure. If the path doesn’t exist, nothing will happen.


Public Method

Replace an existing path with a different one. If the operation is successfull, then the ‘find’ path will be deleted. If the ‘replace’ path is already defined, the items in ‘find’ will be appended to the existing path.


Public Method

Finds the path in this structure with the least dimensions. In case of multiple equally long longest paths, the first one will be returned.


Public Method

Simplify the data structure by removing path indices shared by all branches.


Public Method

Trims the excess allocated memory in all branches