Hi! This post is less of a technical question, and more of a riddle for people who are interested descriptive geometry. A while ago I made this algorithm, just as a proof of concept, with a lot of hardcoded stuff in it:
detarminant.3dm (62.7 KB)
detarminant.gh (29.6 KB)
Now I am trying to make the approach more parametric, and so it works with many shapes. I am struggling to find a coefficient that would represent lens length for each given point at the same time, without looping based on one determined point.
Basic principal looks like this:
We can represent a line in a 2p perspective view, based on its height and plane view.
Here’s a demonstration for 2 lines.
The problem starts when i try to make more lines, or just points. I need some kind of coefficient value, that i struggle to find.
Here is an example where i use such coefficient, but i violate some of the rules of perspective, and get this strange result:
determinant2.3dm (54.1 KB)
determinant2.gh (42.7 KB)
I do it for fun, but i think it can be useful. Please share your thoughts on the matter.
Imagine using this approach being able to build isometry, 2 or 3 point perspective drawings for complex breps in a matter of milliseconds