Skip to content

compas_cem.supports ¤

Supports that anchor the nodes where the trails of a topology diagram end.

Classes¤

NodeSupport ¤

NodeSupport(node, **kwargs)

A support that anchors one node of a diagram.

Parameters:

  • node

    The key of the node to support.

Notes

Supports are where the trails of a topology diagram end. The form-finding algorithm walks back from every support to an origin node to build them.

Source code in src/compas_cem/supports/node.py
def __init__(self, node, **kwargs):
    super(NodeSupport, self).__init__(**kwargs)
    self.node = node
    self.xyz = None

Methods:¤

from_point classmethod ¤
from_point(point)

Create a support from a point.

Parameters:

  • point

    The coordinates of the position to support.

Returns:

  • support

    A support with no node key, positioned at the given point.

Notes

The support binds to a diagram node whose coordinates match the point. If no node sits there, the support is not assigned.

Source code in src/compas_cem/supports/node.py
@classmethod
def from_point(cls, point):
    """
    Create a support from a point.

    Parameters
    ----------
    point :
        The coordinates of the position to support.

    Returns
    -------
    support :
        A support with no node key, positioned at the given point.

    Notes
    -----
    The support binds to a diagram node whose coordinates match the point.
    If no node sits there, the support is not assigned.
    """
    support = cls(node=None)
    support.xyz = point
    return support