Model.create_solid_from_eight_points#

Model.create_solid_from_eight_points(Point1, Point2, Point3, Point4, Point5, Point6, Point7, Point8)#

Creates a solid from eight points. You must provide eight coordinates in this order Point1,Point2,...,Point8 as in the image shown below.

image1

Parameters:
  • Point1 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner1.

  • Point2 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner2.

  • Point3 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner3.

  • Point4 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner4.

  • Point5 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner5.

  • Point6 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner6.

  • Point7 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner7.

  • Point8 (hwTriple) – The double values corresponding to each global x, y, and z coordinates of the box for corner8.

Example#

Create a solid defined by eight corner points#
import hm
import hm.entities as ent

model = hm.Model()

model.create_solid_from_eight_points(
    Point1=[-26.31670, -18.981850, 16.617546],
    Point2=[-26.31670, 30.518150, 16.617546],
    Point3=[-3.097893, -18.981850, 16.617546],
    Point4=[-3.097893, 30.518150, 16.617546],
    Point5=[-26.31670, -18.981850, 37.217796],
    Point6=[-26.31670, 30.518150, 37.217796],
    Point7=[-3.097893, -18.981850, 37.217796],
    Point8=[-3.097893, 30.518150, 37.217796],
)