Model.systemcreate3nodes#

Model.systemcreate3nodes(type, origin, axisname, axispt, planename, planept)#

Creates a rectangular coordinate system.

Parameters:
  • type (int) –

    The type of system being created.

    0 - rectangular

    1 - cylindrical

    2 - spherical

  • origin (Entity) – The object describing the node entity which defines the origin.

  • axisname (hwString) – A string which identifies the axis being defined with the axispt (x, y, or z).

  • axispt (Entity) – The object describing the node entity which defines a point on the axis defined by axisname.

  • planename (hwString) – A string which identifies the plane being defined with the planename (xy, xz, or yz).

  • planept (Entity) – The object describing the node entity which defines a point on the plane defined by planename.

Example#

Build a cylindrical system with the node with ID 1 define the origin , with the node with ID 2 define the x axis , and the node with ID 3 define the xy - plane#
import hm
import hm.entities as ent

model = hm.Model()

model.systemcreate3nodes(
type=1,
origin=ent.Node(model, 1),
axisname="x",
axispt=ent.Node(model, 2),
planename="xy",
planept=ent.Node(model, 3),
)