cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

API_3DCutPlanesInfo - how to set coordinates?

kuvbur
Advocate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
BrunoValads
Booster

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 = originZa = normalX, b = normalY, c = normalZ).

View solution in original post

2 REPLIES 2
Solution
BrunoValads
Booster

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 = originZa = normalX, b = normalY, c = normalZ).

kuvbur
Advocate

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