Model.hm_getcoordinatesofpointsonline#
- Model.hm_getcoordinatesofpointsonline(line, paramList)#
Gets the coordinates of the points for which normalized parameters are specified, along with the line on which they are located, as arguments to the function.
- Parameters:
line (Entity) – The object describing the line entity on which the points are located.
paramList (hwDoubleList) – List of line parameters normalized to the range \((0,1.0)\).
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:pointCoord (numpy.ndarray) - The x, y and z coordinates of calculated point
Example#
Calculate coordinates of endpoints for the line with ID 13#import hm import hm.entities as ent model = hm.Model() _, two_points = model.hm_getcoordinatesofpointsonline( line=ent.Line(model, 13), paramList=[0.0, 1.0] ) startpoint_Result = two_points[0] endpoint_Result = two_points[1] startpoint = startpoint_Result.pointCoord endpoint = endpoint_Result.pointCoord print("Start Point:", startpoint) print("End Point:", endpoint)