Node.from_compas_point
- classmethod Node.from_compas_point(point, mass=None, temperature=None)[source]
Create a Node from a
compas.geometry.Point.- Parameters:
- point
compas.geometry.Point The location of the node in the global coordinate system.
- massfloat or tuple, optional
Lumped nodal mass, by default
None. Iffloat, the same value is used in all 3 directions. If you want to specify a different mass for each direction, provide atupleas (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.
- point
- Returns:
compas_fea2.model.NodeThe Node object.
Examples
>>> from compas.geometry import Point >>> point = Point(1.0, 2.0, 3.0) >>> node = Node.from_compas_point(point)