Node.from_compas_point

classmethod Node.from_compas_point(point, mass=None, temperature=None)[source]

Create a Node from a compas.geometry.Point.

Parameters:
pointcompas.geometry.Point

The location of the node in the global coordinate system.

massfloat or tuple, optional

Lumped nodal mass, by default None. If float, the same value is used in all 3 directions. If you want to specify a different mass for each direction, provide a tuple as (mass_x, mass_y, mass_z) in global coordinates.

temperaturefloat, optional

The temperature at the Node.

namestr, optional

Unique identifier. If not provided, it is automatically generated. Set a name if you want a more human-readable input file.

Returns:
compas_fea2.model.Node

The Node object.

Examples

>>> from compas.geometry import Point
>>> point = Point(1.0, 2.0, 3.0)
>>> node = Node.from_compas_point(point)