Model.hm_morph_getdomainarcangle_byentity#
- Model.hm_morph_getdomainarcangle_byentity(domain, line_or_node_entity=Entity())#
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:
domain (Entity) – The object describing the domain entity.
line_or_node_entity (Entity) – The object describing the entity. Valid entities are lines and nodes.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:arcAngle (double)
Examples#
Get the arc angle of a domain with ID 2 and measured use node ID 12 as the center node#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_morph_getdomainarcangle_byentity( domain=ent.Domain(model, 2), line_or_node_entity=ent.Node(model, 12) ) print("arcAngle",result.arcAngle)
Get the arc angle of a domain with ID 2 and measured use line ID 3 as the center line#import hm import hm.entities as ent model = hm.Model() _,result = model.hm_morph_getdomainarcangle_byentity( domain=ent.Domain(model, 2), line_or_node_entity=ent.Line(model, 3) ) print("arcAngle",result.arcAngle)