# How to get the coordinate of element model

Hello Juan,
When I get the element model from the edge model like this:

``````element_from_edge_model(edge_model="ElectricField", device=device, region=region)
element_model(device=device, region=region, name="Emag",equation="(ElectricField_x^2 + ElectricField_y^2)^(0.5)")
``````

How could I get the coordinates of the center point of the triangle easily?

Hi @ghost,

That is a planned enhancement, but it has not been implemented yet:
https://github.com/devsim/devsim/issues/112

The hard way would be get the center of the circle encompassing the three points of the triangle.

The three nodes of the triangles can be gotten using:
https://devsim.net/CommandReference.html#devsim.get_element_node_list

and then you can get the node model values for those nodes using the `x` and `y`.

The source code in C++ is:
https://github.com/devsim/devsim/blob/main/src/Geometry/Triangle.cc#L95

Please let me know if this is something you need, and I may be able to implement this in a couple of weeks.

Hi Juan, this is exactly what I was looking for. After obtaining the coordinates of the three nodes, I think I could find the center by calculating the intersection of the perpendicular bisectors of two edges. I should be able to write a function to accomplish this. If you could achieve this in the future version, it would be greatly appreciated. Thank you very much!

Thanks for your patience, it may be a few weeks. This is the formula I used:
https://en.wikipedia.org/wiki/Circumcircle#Cartesian_coordinates_from_cross-_and_dot-products