Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Get the entity number of an edge using matlab

$
0
0

Hello

Do you have ever get the entity number of an edge using the start and end points of that edge? In fact, I have the coordinates (and definitely their entity numbers) of two specific points (for instance the point 1 and 2) then, I'm gonna find the entity number of that edge which is made by those points (it might be a curve or even more complicated edge)

I don't wanna use the "mphselectbox" or "mphselectcoords" because of this problem; according to the image that I've attached Imagine in 2D, you have two lines and 3 points and you create a box using "mphselectbox" and the coordinates of the "point1" and "point2" *to get the entity number of "line1". (actually,the entity number of “line1” is our goal) as you see in this image, the result of "mphselectbox" function is the entity number of "line1" and also "line2" !!!!!!!!!!!! because "poitn3" is in this box (which is the smallest box contains "point1" and "point2")

I have a complicated geometry with many points and edges in 3D and I'm gonna get the entity number of every edge using the start and end points of each edge.


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>