Model.hm_gettgofpointsonline#
- Model.hm_gettgofpointsonline(line_entity, u_parameter_list)#
Returns the line coordinates and tangents at each of the given line u parameters.
- Parameters:
line_entity (Entity) – The object describing the line entity to query.
u_parameter_list (hwString) – The list of u parameter values to query.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:tangentVectorComponents (numpy.ndarray) - Tangent vector components for each parameter u
pointCoordinates (numpy.ndarray) - Point coordinates for each parameter u
Example#
Get the tangent value to line with ID 2619 at parameters 0 , 0.3 , 0.6 and 1#import hm import hm.entities as ent model = hm.Model() ulist = "0 0.3 0.6 1" _, resultlist = model.hm_gettgofpointsonline( line_entity=ent.Line(model, 2619), u_parameter_list=ulist ) for u, result in zip(ulist.split(" "), resultlist): print( f"For u={u} the tangent vector components are:", result.tangentVectorComponents ) print(f"For u={u} the point coordinates are:", result.pointCoordinates)