create_edge_set#
- Model.create_edge_set(*, name='EdgeSet', edge_set_type='by_reference', defining_node_labels=(), element_set=None, limit_angle=-1.0, origin=(0.0, 0.0, 0.0))#
Instantiate an edge set.
- Parameters:
name (str) – Name of the edge set.
edge_set_type (EdgeSetType) –
Determines how the edge set is defined. Can be one of:
EdgeSetType.BY_REFERENCE
: define the edge set using anElementSet
.EdgeSetType.BY_NODES
: define the edge set using a list of node labels.
defining_node_labels (Collection[int]) – Labels of the nodes in the edge set. This parameter only applies when
edge_set_type
isEdgeSetType.BY_NODES
.element_set (ElementSet | None) – The boundary of this element set defines the initial edge set. This parameter only applies when
edge_set_type
isEdgeSetType.BY_REFERENCE
.limit_angle (float) – The edge set is cropped if the angle between two element edges exceeds this limits (in degrees). Use
-1.
to disable cropping. This parameter only applies whenedge_set_type
isEdgeSetType.BY_REFERENCE
.origin (tuple[float, float, float]) – Defines the starting point of the edge set. This parameter only applies when
edge_set_type
isEdgeSetType.BY_REFERENCE
.
- Return type:
Added in ACP server version 24.2.
Examples using Model.create_edge_set#
Advanced selection rules example