Model.hm_morph_getdomainarcangle_bybaseandaxis#

Model.hm_morph_getdomainarcangle_bybaseandaxis(domainID, base, axis)#

Returns the arc angle of a specified edge domain. Optional arguments allow the arc angle to be calculated using a line, node, or base point and axis to find the center of curvature.

Parameters:
  • domainID (Entity) – The edge entity domain.

  • base (hwTriple) – x, y, z - Base point is x, y, z.

  • axis (hwTriple) – dx, dy, dz - Axis is along dx, dy, dz.

Returns:

Example#

Get the arc angle a domain with ID 2 and measured at 2.0 , 5.0 , 0.0 and normal to a vector that runs 1.0 in the x direction , 0.5 in the y direction , and 0.0 in the z direction#
import hm
import hm.entities as ent

model = hm.Model()

_,result = model.hm_morph_getdomainarcangle_bybaseandaxis(
    domainID=ent.Domain(model, 2), base=[2.0, 5.0, 0.0],axis=[1.0, 0.5, 0.0]
)

print("arcAngle",result.arcAngle)