sketchgraphs.data.dof

This module contains the implementation and data for heuristic degrees of freedom computation.

Functions

sketchgraphs.data.dof.get_node_label_for_dof(label)sketchgraphs.data._entity.EntityType

Get the node label to be used for degrees of freedom computation.

When computing DOF, subnode labels are merged to point as they represent points.

Parameters

label (Union[EntityType, SubnodeType]) – The original node label

Returns

The corresponding EntityType to be used for DOF computation.

Return type

EntityType

sketchgraphs.data.dof.get_sequence_dof(seq)

Returns array of total DoF contribution from each op.

Parameters

seq (Iterable of NodeOp or EdgeOp) – The construction sequence of the sketch to analyze

Returns

An integer array representing the number of degrees of freedom lost or gained at each construction step.

Return type

np.ndarray