Model.hm_getsurfacesbyedgelength#
- Model.hm_getsurfacesbyedgelength(length)#
Gets the surfaces that have an edge with a length smaller or equal to the specified value.
- Parameters:
length (double) – Length of an edge that you specify.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:surfaces (EntityList) - List of surface entities with edge with lenght smaller or equal to
length- Entity Type:Surface
Example#
Get the surfaces with edges ‘ legth smaller or equal to 20.0#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getsurfacesbyedgelength(length=20.0) print( "Surfaces with edges' length smaller than or equal to 20:", [s.id for s in result.surfaces], )