Model.hm_morph_getdomainradius_bybaseandaxis#
- Model.hm_morph_getdomainradius_bybaseandaxis(domain, base, axis)#
Returns the radius of a specified edge domain. Optional arguments allow the radius to be calculated using a line, node, or base point and axis to find the center of curvature.
- Parameters:
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:radius (double)
Example#
Get the radius of 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_getdomainradius_bybaseandaxis( domain=ent.Domain(model, 2), base=[2.0, 5.0, 0.0],axis=[1.0, 0.5, 0.0] ) print("radius",result.radius)
Note
If the radius of the edge domain is not constant, an average is returned.