I have a dataset in which i have set of line lengths and angles for two corners. I am trying to create polygons using edge lengths and angle for its two corners and add dimensions to them. But i have failed to create lines by length and the polygon by connecting and defining an angle between two lines. Following picture will explain what i am trying to do better i hope. i have attached example file as well. Any help is welcomed
i have done what you said but in grasshopper i have created the geometry using one row and it generated desired result. thanks for that. i will try it with multiple lines of data and see whether if it works or not.
This works using a random demo (*) dTree (containing the right amount of info for the job: lengths and angles - spot that the last branch [per Polyline] contains only length value). PRIOR inputing your stuff (say from excel) … check how the data are organized [for counter clock wise Polyline creation].
For instance if you want solely demo triangles (Set sidesMin, sidesMax = 3): this is the info required (angle [i.e. item 2 per branch - if exists ] is the curr-next segment angle in rad)
BTW: If on the other hand you have overconstrained data and you want to check them for valitidy (meaning if a valid Polyline can come out of them) … well … in this case a few lines of code more are required.