Model.morphdisplayconstraintvector#

Model.morphdisplayconstraintvector(xp, yp, zp, xv, yv, zv, vv, op)#

Draws vector to the screen.

Parameters:
  • xp (double) – x value of vector base

  • yp (double) – y value of vector base

  • zp (double) – z value of vector base

  • xv (double) – x value of vector distance

  • yv (double) – y value of vector distance

  • zv (double) – z value of vector distance

  • vv (double) – Length of vector

  • op (int) –

    0 - Erase drawn vectors

    1 - Draw vector

Example#

A vector is drawn to the screen for the given values. If opt=0, all vectors are erased#
import hm
import hm.entities as ent

model = hm.Model()

model.morphdisplayconstraintvector(
    xp=1.0, yp=2.0, zp=3.0, xv=4.0, yv=5.0, zv=6.0, vv=10.0, op=1
)

Note

For HyperMesh versions 8.0 and higher this function is no longer used because constraints now always display.