API_3DCutPlanesInfo - how to set coordinates?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-07-24 01:56 PM
I need to build a 3d cross section. I found an example code in the help (APIEnv_Change 3D Cutting Planes ID), but I don't understand - what do the "vertical" and "horizontal" coordinates of the section line mean in the API_3DCutShapeType structure?
Industrial Architect and Structural Design Engineer, developer of free addon for sync GDL param and properties
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The doc description is not very useful, but from my tests I found that pa, pb, pc and pd are a, b, c and d from the plane equation a*x + b*y + c*z + d = 0, with {a, b, c} = normal of the plane, and -d being the result of the equation when you apply the plane origin into the equation (x = originX, y = originY, z = originZ, a = normalX, b = normalY, c = normalZ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
The doc description is not very useful, but from my tests I found that pa, pb, pc and pd are a, b, c and d from the plane equation a*x + b*y + c*z + d = 0, with {a, b, c} = normal of the plane, and -d being the result of the equation when you apply the plane origin into the equation (x = originX, y = originY, z = originZ, a = normalX, b = normalY, c = normalZ).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thank you for the advice, I'll try that method.
Industrial Architect and Structural Design Engineer, developer of free addon for sync GDL param and properties