मुख्य सामग्री पर जाएँ

raygeo.sketch.components

Functions​

compute_constraint_components()​

compute_constraint_components(
registry: registry.EntityRegistry,
constraints: Sequence[Any],
) -> list[set[int]]

Partitions all points referenced by constraints into connected components of the constraint graph.

ParameterTypeDescription
registryregistry.EntityRegistry
constraintsSequence[Any]
Returnslist[set[int]]

get_referenced_points()​

get_referenced_points(
registry: registry.EntityRegistry,
constraint: Any,
) -> list[int]

Returns all point ids a constraint couples: the points it references directly plus the points of the entities it references.

ParameterTypeDescription
registryregistry.EntityRegistry
constraintAny
Returnslist[int]