Model.solidblock#

Model.solidblock(base_x, base_y, base_z, ivec_x, ivec_y, ivec_z, jvec_x, jvec_y, jvec_z, kvec_x, kvec_y, kvec_z)#

Creates a full or partial cone or cylindrical solid.

Parameters:
  • base_x (double) – The x-coordinate specifying the center point of the cone/cylinder base location.

  • base_y (double) – The y-coordinate specifying the center point of the cone/cylinder base location.

  • base_z (double) – The z-coordinate specifying the center point of the cone/cylinder base location.

  • ivec_x (double) – The x-coordinate specifying the first axis vector from the base location.

  • ivec_y (double) – The y-coordinate specifying the first axis vector from the base location.

  • ivec_z (double) – The z-coordinate specifying the first axis vector from the base location.

  • jvec_x (double) – The x-coordinate specifying the second axis vector from the base location.

  • jvec_y (double) – The y-coordinate specifying the second axis vector from the base location.

  • jvec_z (double) – The z-coordinate specifying the second axis vector from the base location.

  • kvec_x (double) – The x-coordinate specifying the third axis vector from the base location.

  • kvec_y (double) – The y-coordinate specifying the third axis vector from the base location.

  • kvec_z (double) – The z-coordinate specifying the third axis vector from the base location.

Example#

Create a cube solid with its origin at (10.0 , 10.0 , 10.0) , aligned with global system axis, have size 5#
import hm
import hm.entities as ent

model = hm.Model()

model.solidblock(
    base_x=10.0,
    base_y=10.0,
    base_z=10.0,
    ivec_x=5.0,
    ivec_y=0.0,
    ivec_z=0.0,
    jvec_x=0.0,
    jvec_y=5.0,
    jvec_z=0.0,
    kvec_x=0.0,
    kvec_y=0.0,
    kvec_z=5.0,
)