Model.hm_intersectlineline#
- Model.hm_intersectlineline(segment1Start, segment1End, segment2Start, segment2End)#
Returns the intersection point of two lines consisting of the four 3D points, which are the start and end points of two segments.
- Parameters:
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:intersectionPointCoordinates (numpy.ndarray)
Example#
Return values x , y , z from given segment points#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_intersectlineline( segment1Start=[0.0, 0.0, 0.0], segment1End=[2.0, 0.0, 0.0], segment2Start=[-1.0, 0.0, 0.0], segment2End=[1.0, 0.0, 0.0] ) print("intersectionPointCoordinates", result.intersectionPointCoordinates)