Retrieve vertex indices from EdgePoint #4799
MerlinBieling
started this conversation in
General
Replies: 1 comment
-
Hello! You can use same function available in c++: MeshLib/source/MRMesh/MREdgePoint.h Lines 20 to 21 in ec2cdf8 from meshlib import mrmeshpy as mm
def printEpStatus(tp : mm.MeshTopology, ep : mm.EdgePoint):
v = ep.inVertex(tp)
if v.valid():
print("Edge Point is in vertex: ", v,sep="")
else:
print("Edge Point is on Edge: ", ep.e," From: ",tp.org(ep.e),"->",tp.dest(ep.e)," at [0:1]:",ep.a) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using mrmeshpy.computeGeodesicPath to generate a geodesic path in python.
Mrmeshpy.computeGeodesicPath returns EdgePoints. I would like to retrieve the topological information of that EdgePoint, e.g. I would like to know the vertex indices of the corresponding vertices and the t-value indicating where the EdgePoint lies on the Edge.
Is it possible to directly call this in python?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions