Jump to content

How to retrieve coefficients for equation of actual fitting plane?


---
 Share

Recommended Posts

---

I have a script that fits a plane to some points.  How do I get the equation for this actual fitting plane from GOM?  Something like ax + by + cz + d = 0?

Edited
grammar
Link to comment
Share on other sites

---

Something like this should work:

plane = gom.app.project.actual_elements['Plane 1']
normal = plane.normal
distance = plane.distance_to_origin
print(f"x * {normal.x} + y * {normal.y} + z * {normal.z} = {-distance}")

 

Link to comment
Share on other sites

  • 2 weeks later...
 Share

×
×
  • Create New...