Hello
your question is not very clear, what is your definition of the main direction of the building ?
perhaps you could use oriented Bounding Box to have the main axes of your building.
Hello for everyone,
I am trying to understand the logic of minimum bounding box definition so I can implement it in python script node. The reason is very simple - I am planning to test my gh definitons on Shapediver, which does support python script + Grasshopper. I am trying to develop an automated upper limb 3D scan re-alignment tool and as far as I am aware there is no possibility to (re) execute Galapagos in Shapediver.
I have a well-working definition in Grasshopper + Galapagos (attached…
…
If you have a definition for this direction, then Azimuth will be simple to calculate knowing with vector is North. Usually North is Y vector. And you must must use XY plane as Plane angle.
Vector A and B are “flipped” because Azimuth is clockwize when looking from above and XY plane Z direction is going counter clockwise.
An azimuth (/ˈæzəməθ/ ⓘ; from Arabic: اَلسُّمُوت, romanized: as-sumūt, lit. 'the directions') is the angular measurement in a spherical coordinate system which represents the horizontal angle from a cardinal direction, most commonly north.
Mathematically, the relative position vector from an observer (origin) to a point of interest is projected perpendicularly onto a reference plane (the horizontal plane); the angle between the projected vector and a reference vector on the reference plane is...
1 Like