keypoints#

property Geometry.keypoints: MultiBlock[source]#

Obtain the keypoints geometry.

Obtain the selected keypoints as a pyvista.MultiBlock object.

Returns:
pv.MultiBlock

Examples

>>> mapdl.geometry.keypoints
MultiBlock (0x147a78220)
  N Blocks    26
  X Bounds    -0.016, 0.016
  Y Bounds    -0.008, 0.018
  Z Bounds    -0.003, 0.015

You can plot the entities:

>>> mapdl.geometry.keypoints.plot()

You can access the individual keypoints using indexing:

>>> keypoint0 = mapdl.geometry.keypoints[0]
>>> keypoint0
pyvista_ndarray([ 0.     ,  0.01778, -0.00318])

You can use the entity name:

>>> kp1 = mapdl.geometry.keypoints["kp 1"]
>>> kp1
pyvista_ndarray([ 0.     ,  0.01778, -0.00318])

You can iterate the different elements:

>>> points = mapdl.geometry.keypoints
>>> for each_point in points:
        print(each_point.points[0])
pyvista_ndarray([ 0.     ,  0.01778, -0.00318])
...

Alternatively, to iterate you can use Mapdl.geometry.get_keypoints().

>>> points = mapdl.geometry.get_keypoints(return_as_array=True)
>>> for each_point in points:
        print(each_point)
[ 0.     ,  0.01778, -0.00318]
...