Model.surfaceplane#

Model.surfaceplane(plane_normal, plane_base, size)#

Creates a square, planar surface, and optionally, prepares it for immediate use within the automesher. It can also identify a region in the shape of a square planar surface for the automesher to use under the mesh without surface option.

Parameters:
  • plane_normal (hwTriple) – The hwTriple object defining the plane normal components on which the surface will crated. User can also supply a Python list of three doubles.

  • plane_base (hwTriple) – The hwTriple object defining the base point components of the plane on which the surface will crated. User can also supply a Python list of three doubles.

  • size (double) – The length of the edges of the surface.

Example#

Create a square , planar surface normal to the x axis , with the center at the origin , of size 10.0 , but not create any elements#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=4)

model.surfaceplane(
    plane_normal=[1.0, 0.0, 0.0], plane_base=[0.0, 0.0, 0.0], size=10.0
)