Model.hm_getverticesfromedge#

Model.hm_getverticesfromedge(line)#

Get surface edge endpoints.

Parameters:

line (Entity) – The object describing the input surface edge (line) entity to find the surface edge points.

Returns:

Note

For a closed edge that starts and ends at the same point, the returned values are both equal to the same point.

The points order in the endPoint1, endPoint2 reflects the parametric direction of the edge; the first point corresponds to the smallest parameter value.

Example#

Get two edge endpoints of edge ( line ) with ID 12#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getverticesfromedge(line=ent.Line(model, 12))

print("End point 1:", result.endPoint1.id)
print("End point 2:", result.endPoint2.id)