[Aa...] Posted March 1 Share Posted March 1 (edited) 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 March 1 grammar Link to comment Share on other sites More sharing options...
[Mi...] Posted March 4 Share Posted March 4 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 More sharing options...
[Aa...] Posted March 12 Author Share Posted March 12 Ok, I'll give that a shot. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in